Skip to content

Commit f66c82d

Browse files
tbitcsoz-agent
andcommitted
fix(lint): ruff format test_ai_intelligence.py
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 9afa6c0 commit f66c82d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

tests/test_ai_intelligence.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,8 @@ def fake_urlopen(req: object, **kwargs: object) -> object: # noqa: ANN001
594594
# Verify that at least one request included the Authorization header
595595
assert captured_headers, "urlopen must have been called at least once"
596596
auth_values = [
597-
v
598-
for hdrs in captured_headers
599-
for k, v in hdrs.items()
600-
if k.lower() == "authorization"
597+
v for hdrs in captured_headers for k, v in hdrs.items() if k.lower() == "authorization"
601598
]
602-
assert any(
603-
"Bearer hf_test_token" in v for v in auth_values
604-
), f"No Authorization header found in captured requests: {captured_headers}"
599+
assert any("Bearer hf_test_token" in v for v in auth_values), (
600+
f"No Authorization header found in captured requests: {captured_headers}"
601+
)

0 commit comments

Comments
 (0)