mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Applied black
This commit is contained in:
parent
5986083746
commit
16d7008002
1 changed files with 1 additions and 7 deletions
|
|
@ -68,13 +68,7 @@ def test_update_alter(fresh_db):
|
|||
|
||||
def test_update_with_no_values_sets_last_pk(fresh_db):
|
||||
table = fresh_db.table("dogs", pk="id")
|
||||
table.insert_all([{
|
||||
"id": 1,
|
||||
"name": "Cleo",
|
||||
}, {
|
||||
"id": 2,
|
||||
"name": "Pancakes"
|
||||
}])
|
||||
table.insert_all([{"id": 1, "name": "Cleo"}, {"id": 2, "name": "Pancakes"}])
|
||||
table.update(1)
|
||||
assert 1 == table.last_pk
|
||||
table.update(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue