Skip to content

Commit 400b4a4

Browse files
fix: update virtual module tests to use 2.0 fetch API
Replace deprecated fetch() calls with to_dicts() in test_virtual_module.py: - test_virtual_schema_tables_are_queryable: use lab.Experiment().to_dicts() - test_getitem_is_queryable: use table.to_dicts() Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent bc8e3bd commit 400b4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_virtual_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_virtual_schema_tables_are_queryable(self, schema_any, connection_test):
3939
"""Tables from virtual_schema can be queried."""
4040
lab = dj.virtual_schema(schema_any.database, connection=connection_test)
4141
# Should not raise
42-
lab.Experiment.fetch()
42+
lab.Experiment().to_dicts()
4343

4444

4545
class TestSchemaGetTable:
@@ -75,7 +75,7 @@ def test_getitem_is_queryable(self, schema_any):
7575
"""Table from __getitem__ can be queried."""
7676
table = schema_any["Experiment"]
7777
# Should not raise
78-
table.fetch()
78+
table.to_dicts()
7979

8080

8181
class TestSchemaIteration:

0 commit comments

Comments
 (0)