Skip to content

Commit

Permalink
test that schema names are listed alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
guenp committed Dec 6, 2023
1 parent 4505a6d commit d619322
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions duckdb_engine/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,19 @@ def test_get_schema_names(inspector: Inspector, session: Session) -> None:
# Deliberately excluding pg_catalog schema (to align with Postgres)
names = inspector.get_schema_names()
if supports_attach:
assert set(names) == {
'memory."quack quack"',
"memory.information_schema",
"memory.main",
'"daffy duck"."you\'re "" despicable"',
'"daffy duck"."quack quack"',
assert names == [
'"daffy duck".information_schema',
'"daffy duck".main',
'"daffy duck"."quack quack"',
'"daffy duck"."you\'re "" despicable"',
"memory.information_schema",
"memory.main",
'memory."quack quack"',
"system.information_schema",
"system.main",
"temp.information_schema",
"temp.main",
}
]
else:
assert names == ["quack quack", "information_schema", "main", "temp"]

Check warning on line 204 in duckdb_engine/tests/test_basic.py

View check run for this annotation

Codecov / codecov/patch

duckdb_engine/tests/test_basic.py#L204

Added line #L204 was not covered by tests

Expand Down

0 comments on commit d619322

Please sign in to comment.