Swapped the order of a bunch of pytest comparisons

When I wrote this I thought constant == value was a better assertion. I no longer think that.
This commit is contained in:
Simon Willison 2023-08-17 18:05:13 -07:00
commit d2bcdc00c6
10 changed files with 82 additions and 82 deletions

View file

@ -18,18 +18,18 @@ def test_delete_where(fresh_db):
table = fresh_db["table"]
for i in range(1, 11):
table.insert({"id": i}, pk="id")
assert 10 == table.count
assert table.count == 10
table.delete_where("id > ?", [5])
assert 5 == table.count
assert table.count == 5
def test_delete_where_all(fresh_db):
table = fresh_db["table"]
for i in range(1, 11):
table.insert({"id": i}, pk="id")
assert 10 == table.count
assert table.count == 10
table.delete_where()
assert 0 == table.count
assert table.count == 0
def test_delete_where_analyze(fresh_db):