Skip to content

Commit 85d4a85

Browse files
committed
Cover ephemeral SQLite initialization rejection
1 parent c8b4fad commit 85d4a85

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎tests/test_catalog_lifecycle.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,3 +416,12 @@ def test_reflected_mysql_integer_display_width_is_not_semantic():
416416
assert wide._normalized_sql_type(
417417
inspector, mysql.VARCHAR(length=255),
418418
) == "VARCHAR(255)"
419+
420+
@pytest.mark.parametrize("database_url", ["sqlite://", "sqlite:///:memory:"])
421+
def test_catalog_initialization_rejects_ephemeral_sqlite_url(database_url):
422+
with pytest.raises(
423+
UnsupportedOperationError,
424+
match="requires a persistent SQLite database URL",
425+
):
426+
openstatspec.initialize_catalog(database_url=database_url)
427+

0 commit comments

Comments
 (0)