Skip to content

Commit

Permalink
Fix two more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi committed Jun 11, 2023
1 parent aedd6b1 commit c8dd1aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ def test_starmatch_to_regex(pattern, input, match):

def test_url_sanitization():
sanitized = sanitize_url("http://user:pass@localhost:123/foo?bar=baz#bazzinga")
assert sanitized == "http://user:%s@localhost:123/foo?bar=baz#bazzinga" % constants.MASK
assert sanitized == "http://user:%s@localhost:123/foo?bar=baz#bazzinga" % constants.MASK_URL


def test_url_sanitization_urlencoded_password():
sanitized = sanitize_url("http://user:%F0%9F%9A%B4@localhost:123/foo?bar=baz#bazzinga")
assert sanitized == "http://user:%s@localhost:123/foo?bar=baz#bazzinga" % constants.MASK
assert sanitized == "http://user:%s@localhost:123/foo?bar=baz#bazzinga" % constants.MASK_URL


@pytest.mark.parametrize(
Expand Down

0 comments on commit c8dd1aa

Please sign in to comment.