Skip to content

Commit

Permalink
test: Fix expectation for urllib3
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 3, 2023
1 parent 88708d8 commit 3052dd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def test_connection_error(rf):
assert b"Connection refused" in resp.content

resp = v.data_input(fake_cove_middleware(rf.post("/", {"source_url": "https://wrong.host.badssl.com/"})))
# https://docs.djangoproject.com/en/3.2/releases/3.0/#miscellaneous
assert b"doesn't match either of" in resp.content or b"doesn't match either of" in resp.content
assert b"Hostname mismatch, certificate is not valid" in resp.content


@pytest.mark.django_db
Expand Down

0 comments on commit 3052dd8

Please sign in to comment.