Skip to content

Commit

Permalink
the easy to miss f-string mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Nov 21, 2024
1 parent 3207e77 commit 7f69b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_database_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_password_with_escape_update():
u = u.replace(username="foo", password=r"@[]{5}")
assert u.username == "foo"
assert u.password == r"@[]{5}"
assert u.userinfo == f"foo:{quote(r"@[]{5}")}".encode()
assert u.userinfo == f"foo:{quote(r'@[]{5}')}".encode()
assert str(u).count("@") == 1

u2 = DatabaseURL(u)
Expand Down

0 comments on commit 7f69b31

Please sign in to comment.