From: Philipp Spitzer Date: Mon, 29 Jun 2020 20:48:02 +0000 (+0200) Subject: Insert testdb.sql as raw SQL. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/commitdiff_plain/ddf466db72db6a3c0c13bdc9cb4a4d72934fcb21 Insert testdb.sql as raw SQL. --- diff --git a/tests/test_wradmin.py b/tests/test_wradmin.py index db26665..eb8a9cc 100644 --- a/tests/test_wradmin.py +++ b/tests/test_wradmin.py @@ -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()