# HG changeset patch # User Konstantin Veretennicov # Date 1462725227 -7200 # Node ID 060ffe6dd700ca6a425f5ffa47d52cc9742bda40 # Parent c1af4d89a7375538d709b8ba0868ad2a5034bef7 tests: fix issue with set_test_settings fixture not committing changes Flushing session is not enough to make setting changes visible in controller tests. diff -r c1af4d89a737 -r 060ffe6dd700 kallithea/tests/conftest.py --- a/kallithea/tests/conftest.py Fri May 27 11:43:17 2016 +0200 +++ b/kallithea/tests/conftest.py Sun May 08 18:33:47 2016 +0200 @@ -61,7 +61,7 @@ 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