mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
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:
parent
b4735f794a
commit
d2bcdc00c6
10 changed files with 82 additions and 82 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue