mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
black
This commit is contained in:
parent
c1a4ebb5a1
commit
8eb5b3ad5a
1 changed files with 4 additions and 2 deletions
|
|
@ -69,7 +69,9 @@ async def test_script_single_statement(ds_script):
|
||||||
assert event.num_statements == 1
|
assert event.num_statements == 1
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(reason="SQLite behavior with concurrent test fixtures needs investigation")
|
@pytest.mark.skip(
|
||||||
|
reason="SQLite behavior with concurrent test fixtures needs investigation"
|
||||||
|
)
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_script_multiple_statements(ds_script):
|
async def test_script_multiple_statements(ds_script):
|
||||||
"""Test executing multiple SQL statements in a transaction"""
|
"""Test executing multiple SQL statements in a transaction"""
|
||||||
|
|
@ -80,7 +82,7 @@ async def test_script_multiple_statements(ds_script):
|
||||||
).dicts()
|
).dicts()
|
||||||
assert len(initial_rows) == 1
|
assert len(initial_rows) == 1
|
||||||
assert initial_rows[0]["id"] == 1
|
assert initial_rows[0]["id"] == 1
|
||||||
|
|
||||||
sql_script = """
|
sql_script = """
|
||||||
INSERT INTO items (id, name, value) VALUES (10, 'item2', 20);
|
INSERT INTO items (id, name, value) VALUES (10, 'item2', 20);
|
||||||
INSERT INTO items (id, name, value) VALUES (11, 'item3', 30);
|
INSERT INTO items (id, name, value) VALUES (11, 'item3', 30);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue