Skip to content

Commit 69dfebc

Browse files
committed
chore: update schema names test for nightly
1 parent 4671642 commit 69dfebc

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

duckdb_engine/tests/test_basic.py

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,26 @@ def test_get_schema_names(inspector: Inspector, session: Session) -> None:
184184
session.commit()
185185

186186
# Deliberately excluding pg_catalog schema (to align with Postgres)
187-
names = inspector.get_schema_names()
188-
if supports_attach:
189-
assert names == [
190-
'"daffy duck".information_schema',
191-
'"daffy duck".main',
192-
'"daffy duck"."quack quack"',
193-
'"daffy duck"."you\'re "" despicable"',
194-
"memory.information_schema",
195-
"memory.main",
196-
'memory."quack quack"',
197-
"system.information_schema",
198-
"system.main",
199-
"temp.information_schema",
200-
"temp.main",
201-
]
202-
else:
203-
assert names == ["quack quack", "information_schema", "main", "temp"]
187+
names = set(inspector.get_schema_names())
188+
expected = {
189+
'"daffy duck".main',
190+
'"daffy duck"."quack quack"',
191+
'"daffy duck"."you\'re "" despicable"',
192+
"memory.main",
193+
'memory."quack quack"',
194+
"system.information_schema",
195+
"system.main",
196+
"temp.main",
197+
}
198+
if duckdb.__version__ <= "1.1.3":
199+
expected.update(
200+
{
201+
'"daffy duck".information_schema',
202+
"memory.information_schema",
203+
"temp.information_schema",
204+
}
205+
)
206+
assert names == expected
204207

205208

206209
@mark.skipif(

0 commit comments

Comments
 (0)