]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Insert testdb.sql as raw SQL.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Jun 2020 20:48:02 +0000 (22:48 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 29 Jun 2020 20:48:02 +0000 (22:48 +0200)
tests/test_wradmin.py

index db266652cfce54021de9b3b8c2f3990a3d5b5d9d..eb8a9ccf5d2e9306f0a120f90672850f70c4e18d 100644 (file)
@@ -50,7 +50,7 @@ class TestDbWradmin(WradminTestBase):
             with open('tests/testdb.sql', 'r') as f:
                 sql = f.read()
             with wradmin.model.meta.engine.begin() as con:
-                con.execute(sql)
+                con.execution_options(no_parameters=True).execute(sql)
 
                 # update dates
                 seconds_diff, = con.execute("SELECT TIMESTAMPDIFF(SECOND, '2017-03-31 07:00', now())").fetchone()