]> git.jsancho.org Git - datasette-connectors.git/blob - tests/test_html.py
Overwriting Connector class is enough to operate with
[datasette-connectors.git] / tests / test_html.py
1 from .fixtures import app_client
2
3 def test_homepage(app_client):
4     response = app_client.get('/', gather_request=False)
5     assert response.status == 200
6     assert 'dummy_tables' in response.text
7
8 def test_database_page(app_client):
9     response = app_client.get('/dummy_tables', allow_redirects=False, gather_request=False)
10     assert response.status == 302
11     response = app_client.get('/dummy_tables', gather_request=False)
12     assert 'dummy_tables' in response.text
13
14 def test_table(app_client):
15     response = app_client.get('/dummy_tables/table2', gather_request=False)
16     assert response.status == 200