Skip to content

Commit

Permalink
More tests, refs #2218
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Dec 19, 2023
1 parent 39b89a9 commit 3f6d7d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_internals_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ def create_shared_table(conn):
conn.execute(
"create temporary table created_by_isolated (id integer primary key)"
)
assert table_exists(conn, "created_by_isolated")
# Also confirm that created_by_write does not exist
return table_exists(conn, "created_by_write")

Expand All @@ -573,6 +574,8 @@ def create_shared_table(conn):
# created_by_isolated should not exist, even in write connection
assert not await db.execute_write_fn(table_exists_checker("created_by_isolated"))

# ... and a second call to isolated should not see that connection either
assert not await db.execute_isolated_fn(table_exists_checker("created_by_isolated"))

@pytest.mark.asyncio
async def test_mtime_ns(db):
Expand Down

0 comments on commit 3f6d7d7

Please sign in to comment.