Use db.table() and db.view() in tests, closes #838

This commit is contained in:
Simon Willison 2026-08-12 13:40:55 -07:00
commit 38fe466700
43 changed files with 1321 additions and 1254 deletions

View file

@ -228,7 +228,7 @@ def test_memory_save(tmpdir, extra_args):
)
assert result.exit_code == 0
db = Database(save_to)
assert list(db["stdin"].rows) == [
assert list(db.table("stdin").rows) == [
{"id": 1, "name": "Cleo"},
{"id": 2, "name": "Bants"},
]