Optimize create table calls using executescript=True

Refs #1555, #1569
This commit is contained in:
Simon Willison 2021-12-18 10:30:53 -08:00
commit 2e4ba71b53
4 changed files with 18 additions and 43 deletions

View file

@ -950,7 +950,9 @@ def test_trace(trace_debug):
"select ",
)
for prefix in expected:
assert any(sql.startswith(prefix) for sql in sqls)
assert any(
sql.startswith(prefix) for sql in sqls
), "No trace beginning with: {}".format(prefix)
@pytest.mark.parametrize(