mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-17 14:04:11 +02:00
black formatting
This commit is contained in:
parent
1c9e21f9a2
commit
3dba2029b5
4 changed files with 84 additions and 62 deletions
|
|
@ -355,7 +355,10 @@ def test_add_foreign_key(fresh_db):
|
|||
assert isinstance(t, Table) and t.name == "books"
|
||||
assert [
|
||||
ForeignKey(
|
||||
table="books", column=("author_id",), other_table="authors", other_column=("id",)
|
||||
table="books",
|
||||
column=("author_id",),
|
||||
other_table="authors",
|
||||
other_column=("id",),
|
||||
)
|
||||
] == fresh_db["books"].foreign_keys
|
||||
|
||||
|
|
@ -364,9 +367,9 @@ def test_add_compound_foreign_key(fresh_db):
|
|||
fresh_db["authors"].insert_all(
|
||||
[
|
||||
{"id": 1, "person_id": 1, "name": "Sally"},
|
||||
{"id": 2, "person_id": 2, "name": "Asheesh"}
|
||||
{"id": 2, "person_id": 2, "name": "Asheesh"},
|
||||
],
|
||||
pk=("id", "person_id")
|
||||
pk=("id", "person_id"),
|
||||
)
|
||||
fresh_db["books"].insert_all(
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue