Changeset - 060ffe6dd700
[Not reviewed]
default
0 1 0
Konstantin Veretennicov - 10 years ago 2016-05-08 18:33:47
kveretennicov@gmail.com
tests: fix issue with set_test_settings fixture not committing changes

Flushing session is not enough to make setting changes visible in controller
tests.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/conftest.py
Show inline comments
 
@@ -61,7 +61,7 @@ def _set_settings(*kvtseq):
 
        t = kvt[2] if len(kvt) == 3 else 'unicode'
 
        setting = Setting.create_or_update(k, v, t)
 
        session.add(setting)
 
    session.flush()
 
    session.commit()
 

	
 

	
 
@pytest.yield_fixture
0 comments (0 inline, 0 general)