Refactored tests into new test_rows.py, refs #76

This commit is contained in:
Simon Willison 2020-04-15 18:04:51 -07:00
commit fc38868bd4
3 changed files with 29 additions and 27 deletions

View file

@ -62,12 +62,6 @@ def test_columns(existing_db):
]
def test_rows(existing_db):
assert [{"text": "one"}, {"text": "two"}, {"text": "three"}] == list(
existing_db["foo"].rows
)
def test_schema(existing_db):
assert "CREATE TABLE foo (text TEXT)" == existing_db["foo"].schema