Better text/plain detection and refactor tests (#443)

This commit is contained in:
dgtlmoon
2022-03-01 17:50:15 +01:00
committed by GitHub
parent 615fa2c5b2
commit 96664ffb10
6 changed files with 24 additions and 32 deletions

View File

@@ -14,7 +14,6 @@ def set_response_data(test_return_data):
def test_snapshot_api_detects_change(client, live_server):
test_return_data = "Some initial text"
test_return_data_modified = "Some NEW nice initial text"
@@ -27,7 +26,7 @@ def test_snapshot_api_detects_change(client, live_server):
time.sleep(1)
# Add our URL to the import page
test_url = url_for('test_endpoint', _external=True)
test_url = url_for('test_endpoint', content_type="text/plain", _external=True)
res = client.post(
url_for("import_page"),
data={"urls": test_url},