Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal committed Jun 20, 2024
1 parent 4dd8e2c commit b4172e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingestion_server/test/unit_tests/test_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def test_url_protocol_fix():
tls_support_cache = {}
pook.get("https://flickr.com").reply(200)
result = CleanupFunctions.cleanup_url(bad_url, tls_support_cache)
expected = "'https://flickr.com'"
expected = "https://flickr.com"

bad_http = "neverssl.com"
pook.get("https://neverssl.com").reply(500)
result_http = CleanupFunctions.cleanup_url(bad_http, tls_support_cache)
expected_http = "'http://neverssl.com'"
expected_http = "http://neverssl.com"
assert result == expected
assert result_http == expected_http

Expand Down

0 comments on commit b4172e4

Please sign in to comment.