Skip to content

Commit 3cc40d8

Browse files
committed
Reformatted
1 parent 99e3bcc commit 3cc40d8

3 files changed

Lines changed: 10 additions & 18 deletions

File tree

‎tests/e2e/features/steps/okp_rag.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ def check_tool_call_name(context: Context, name: str) -> None:
375375
tool_calls = _get_tool_calls(context)
376376
assert tool_calls, "No tool_calls to check"
377377
names = [tc.get("name") for tc in tool_calls]
378-
assert name in names, (
379-
f"Expected tool_call with name {name!r}, but found names {names!r}"
380-
)
378+
assert (
379+
name in names
380+
), f"Expected tool_call with name {name!r}, but found names {names!r}"
381381

382382

383383
# ── Then Steps: Content and Results Assertions ──

‎tests/e2e/features/steps/proxy.py‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,7 @@ def configure_ogx_ciphers(context: Context, ciphers: str) -> None:
618618
# --- Proxy Verification Steps ---
619619

620620

621-
@then(
622-
"The tunnel proxy handled at least {count:d} CONNECT request to the LLM provider"
623-
)
621+
@then("The tunnel proxy handled at least {count:d} CONNECT request to the LLM provider")
624622
def verify_tunnel_proxy_used(context: Context, count: int) -> None:
625623
"""Verify the tunnel proxy received CONNECT requests."""
626624
if is_prow_environment():
@@ -634,9 +632,9 @@ def verify_tunnel_proxy_used(context: Context, count: int) -> None:
634632
return
635633

636634
proxy = context.tunnel_proxy
637-
assert proxy.connect_count >= count, (
638-
f"Expected at least {count} CONNECT requests, got {proxy.connect_count}"
639-
)
635+
assert (
636+
proxy.connect_count >= count
637+
), f"Expected at least {count} CONNECT requests, got {proxy.connect_count}"
640638
assert proxy.last_connect_target is not None, "No CONNECT target recorded"
641639

642640

‎tests/unit/utils/test_saved_prompts.py‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,23 @@ def test_rejects_count_equal_to_max(self) -> None:
8282
"""Test create is rejected when current count equals the inclusive max."""
8383
with pytest.raises(
8484
SavedPromptLimitExceededError,
85-
match=(
86-
r"Saved prompt limit exceeded: 50 existing prompts, maximum is 50"
87-
),
85+
match=(r"Saved prompt limit exceeded: 50 existing prompts, maximum is 50"),
8886
):
8987
validate_saved_prompt_quota(50, 50)
9088

9189
def test_rejects_count_above_max(self) -> None:
9290
"""Test create is rejected when current count is above the max."""
9391
with pytest.raises(
9492
SavedPromptLimitExceededError,
95-
match=(
96-
r"Saved prompt limit exceeded: 51 existing prompts, maximum is 50"
97-
),
93+
match=(r"Saved prompt limit exceeded: 51 existing prompts, maximum is 50"),
9894
):
9995
validate_saved_prompt_quota(51, 50)
10096

10197
def test_rejects_when_max_is_zero(self) -> None:
10298
"""Test max_prompts_per_user of 0 rejects even a zero current count."""
10399
with pytest.raises(
104100
SavedPromptLimitExceededError,
105-
match=(
106-
r"Saved prompt limit exceeded: 0 existing prompts, maximum is 0"
107-
),
101+
match=(r"Saved prompt limit exceeded: 0 existing prompts, maximum is 0"),
108102
):
109103
validate_saved_prompt_quota(0, 0)
110104

0 commit comments

Comments
 (0)