]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - tests/test_wradmin.py
Remove explicit get_db and now calling Session.remove() at the end of requests.
[philipp/winterrodeln/wradmin.git] / tests / test_wradmin.py
index 15256d979bbb36990a8e270182bd01367bef7161..7264e8489157d19d9ca03f1562d848dc4b9eae41 100644 (file)
@@ -36,7 +36,7 @@ class TestDbWradmin(WradminTestBase):
             # fill database
             with open('tests/testdb.sql', 'r') as f:
                 sql = f.read()
-            with wradmin.get_db() as con:
+            with wradmin.model.meta.engine.begin() as con:
                 con.execute(sql)
 
                 # update dates