mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Updated JSON foreign key tables test for #1525
This commit is contained in:
parent
35b12746ba
commit
ca66246438
1 changed files with 5 additions and 0 deletions
|
|
@ -1357,30 +1357,35 @@ def test_row_foreign_key_tables(app_client):
|
||||||
"column": "id",
|
"column": "id",
|
||||||
"other_column": "foreign_key_with_blank_label",
|
"other_column": "foreign_key_with_blank_label",
|
||||||
"count": 0,
|
"count": 0,
|
||||||
|
"link": "/fixtures/foreign_key_references?foreign_key_with_blank_label=1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"other_table": "foreign_key_references",
|
"other_table": "foreign_key_references",
|
||||||
"column": "id",
|
"column": "id",
|
||||||
"other_column": "foreign_key_with_label",
|
"other_column": "foreign_key_with_label",
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
"link": "/fixtures/foreign_key_references?foreign_key_with_label=1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"other_table": "complex_foreign_keys",
|
"other_table": "complex_foreign_keys",
|
||||||
"column": "id",
|
"column": "id",
|
||||||
"other_column": "f3",
|
"other_column": "f3",
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
"link": "/fixtures/complex_foreign_keys?f3=1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"other_table": "complex_foreign_keys",
|
"other_table": "complex_foreign_keys",
|
||||||
"column": "id",
|
"column": "id",
|
||||||
"other_column": "f2",
|
"other_column": "f2",
|
||||||
"count": 0,
|
"count": 0,
|
||||||
|
"link": "/fixtures/complex_foreign_keys?f2=1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"other_table": "complex_foreign_keys",
|
"other_table": "complex_foreign_keys",
|
||||||
"column": "id",
|
"column": "id",
|
||||||
"other_column": "f1",
|
"other_column": "f1",
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
"link": "/fixtures/complex_foreign_keys?f1=1",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue