Test demonstrating fixed #1305, refs #1306

pull/1357/head
Simon Willison 2021-06-01 21:26:25 -07:00
rodzic 0f41db1ba8
commit 80d8b0eb41
1 zmienionych plików z 19 dodań i 0 usunięć

Wyświetl plik

@ -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