mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
0f41db1ba8
commit
80d8b0eb41
1 changed files with 19 additions and 0 deletions
|
|
@ -1685,3 +1685,22 @@ def test_facet_more_links(
|
|||
assert facet_truncated.find("a")["href"] == expected_ellipses_url
|
||||
else:
|
||||
assert facet_truncated.find("a") is None
|
||||
|
||||
|
||||
def test_unavailable_table_does_not_break_sort_relationships():
|
||||
# https://github.com/simonw/datasette/issues/1305
|
||||
with make_app_client(
|
||||
metadata={
|
||||
"databases": {
|
||||
"fixtures": {
|
||||
"tables": {
|
||||
"foreign_key_references": {
|
||||
"allow": False
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
) as client:
|
||||
response = client.get("/?_sort=relationships")
|
||||
assert response.status == 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue