table.extract() now works with rowid tables, refs #42

This commit is contained in:
Simon Willison 2020-09-22 16:11:07 -07:00
commit 2db6c5b2d5
3 changed files with 30 additions and 5 deletions

View file

@ -26,7 +26,9 @@ def test_rows_where(where, where_args, expected_ids, fresh_db):
],
pk="id",
)
assert expected_ids == {r["id"] for r in table.rows_where(where, where_args, select="id")}
assert expected_ids == {
r["id"] for r in table.rows_where(where, where_args, select="id")
}
@pytest.mark.parametrize(