Skip to content

Commit 409f6ff

Browse files
committed
style: apply ruff-format per upstream pre-commit hook
Single-line consolidation in test file (legitimate_paths_still_match docstring/body).
1 parent d4619b9 commit 409f6ff

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/shared/test_auth_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ def test_check_resource_allowed_double_slash_collapses():
157157
comparison happens on canonical paths.
158158
"""
159159
# "/api//victim" normalizes to "/api/victim" — must NOT match "/api/victim2"
160-
assert (
161-
check_resource_allowed("https://example.com/api//victim", "https://example.com/api/victim2")
162-
is False
163-
)
160+
assert check_resource_allowed("https://example.com/api//victim", "https://example.com/api/victim2") is False
164161

165162

166163
def test_check_resource_allowed_legitimate_paths_still_match():

0 commit comments

Comments
 (0)