Renamed test_tables.db to fixtures.db in unit tests

This commit is contained in:
Simon Willison 2018-06-17 11:34:16 -07:00
commit 0357774c94
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
6 changed files with 139 additions and 139 deletions

View file

@ -7,7 +7,7 @@ import pytest
def test_plugins_dir_plugin(app_client):
response = app_client.get(
"/test_tables.json?sql=select+convert_units(100%2C+'m'%2C+'ft')"
"/fixtures.json?sql=select+convert_units(100%2C+'m'%2C+'ft')"
)
assert pytest.approx(328.0839) == response.json['rows'][0][0]
@ -40,7 +40,7 @@ def test_plugin_extra_js_urls(app_client):
def test_plugins_with_duplicate_js_urls(app_client):
# If two plugins both require jQuery, jQuery should be loaded only once
response = app_client.get(
"/test_tables"
"/fixtures"
)
# This test is a little tricky, as if the user has any other plugins in
# their current virtual environment those may affect what comes back too.