X-Git-Url: https://git.jsancho.org/?p=datasette-connectors.git;a=blobdiff_plain;f=tests%2Ftest_html.py;fp=tests%2Ftest_html.py;h=9363d142014fb1e105283fa12b994f8049128cec;hp=e604694bdab37278a2e7178f601c914534987b1e;hb=2bbd8101389969b749f91dea1231682773caebae;hpb=b0802bdb9d86cd65524d6ffa7afb66488d167b1e diff --git a/tests/test_html.py b/tests/test_html.py index e604694..9363d14 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -1,16 +1,16 @@ -from .fixtures import app_client +from .fixtures import app_client, app_client_with_hash def test_homepage(app_client): - response = app_client.get('/', gather_request=False) + response = app_client.get('/') assert response.status == 200 assert 'dummy_tables' in response.text -def test_database_page(app_client): - response = app_client.get('/dummy_tables', allow_redirects=False, gather_request=False) +def test_database_page(app_client_with_hash): + response = app_client_with_hash.get('/dummy_tables', allow_redirects=False) assert response.status == 302 - response = app_client.get('/dummy_tables', gather_request=False) + response = app_client_with_hash.get('/dummy_tables') assert 'dummy_tables' in response.text def test_table(app_client): - response = app_client.get('/dummy_tables/table2', gather_request=False) + response = app_client.get('/dummy_tables/table2') assert response.status == 200