X-Git-Url: https://git.jsancho.org/?p=datasette-pytables.git;a=blobdiff_plain;f=tests%2Ftest_html.py;h=a545fe5ebe98db6d993859d7cb3d4cc58a90cf21;hp=30ecce11b2c29d43fa5d851882cdcb2cf07b0567;hb=30d9dbfca20886a04bdbc6da0df77afb16e26436;hpb=54aeb4a8918f31b273875646d7a56a1c4da34564 diff --git a/tests/test_html.py b/tests/test_html.py index 30ecce1..a545fe5 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -12,17 +12,21 @@ def test_database_page(app_client_with_hash): assert 'test_tables' in response.text def test_table(app_client): - response = app_client.get('/test_tables/%2Fgroup1%2Ftable1') + response = app_client.get('/test_tables/%group1%table1') assert response.status == 200 def test_table_row(app_client): - response = app_client.get('/test_tables/%2Fgroup1%2Ftable1/50') + response = app_client.get('/test_tables/%group1%table1/50') assert response.status == 200 def test_array(app_client): - response = app_client.get('/test_tables/%2Fgroup1%2Farray2') + response = app_client.get('/test_tables/%group1%array2') assert response.status == 200 def test_array_row(app_client): - response = app_client.get('/test_tables/%2Fgroup1%2Farray2/1050') + response = app_client.get('/test_tables/%group1%array2/1050') + assert response.status == 200 + +def test_table_exact_query(app_client): + response = app_client.get('/test_tables/%group2%table2/?idnumber__exact=0') assert response.status == 200