Mercurial > kallithea
changeset 5951:060ffe6dd700
tests: fix issue with set_test_settings fixture not committing changes
Flushing session is not enough to make setting changes visible in controller
tests.
author | Konstantin Veretennicov <kveretennicov@gmail.com> |
---|---|
date | Sun, 08 May 2016 18:33:47 +0200 |
parents | c1af4d89a737 |
children | 24d5af811027 |
files | kallithea/tests/conftest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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