Skip to content

Commit 680d4c5

Browse files
committed
style(tests): format projected matcher regression cases
Signed-off-by: yashrajbasav <[email protected]>
1 parent 85218b5 commit 680d4c5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎tests/nodes/analyzers/test_multiline_prompt_spacing.py‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def test_projected_prompt_regex_timeout_records_incomplete_coverage(
440440
clock = iter((0.0, 0.02, 0.02, 0.04))
441441
monkeypatch.setattr(artifact_integrity.time, "thread_time", lambda: next(clock))
442442
monkeypatch.setattr(
443-
artifact_integrity, "_multiline_prompt_injection_line",
443+
artifact_integrity,
444+
"_multiline_prompt_injection_line",
444445
lambda *_args: pytest.fail("ordinary projection reached the multiline fallback"),
445446
)
446447

@@ -475,7 +476,8 @@ def test_repeated_projected_prompt_prefix_has_engine_deadline(
475476
) -> None:
476477
monkeypatch.setattr(artifact_integrity, "_MULTILINE_PROMPT_PATTERN_SECONDS", 0.000001)
477478
monkeypatch.setattr(
478-
artifact_integrity, "_multiline_prompt_injection_line",
479+
artifact_integrity,
480+
"_multiline_prompt_injection_line",
479481
lambda *_args: pytest.fail("ordinary projection reached the multiline fallback"),
480482
)
481483
content = "w i t h o u t t e l l i n g u s e r " * 1000
@@ -500,7 +502,11 @@ def test_timed_prompt_matches_excludes_consumer_cpu(monkeypatch: pytest.MonkeyPa
500502
while time.thread_time() < until:
501503
pass
502504
assert [first.span(), *(match.span() for match in matches)] == [
503-
(0, 0), (0, 1), (1, 1), (1, 2), (2, 2)
505+
(0, 0),
506+
(0, 1),
507+
(1, 1),
508+
(1, 2),
509+
(2, 2),
504510
]
505511

506512

0 commit comments

Comments
 (0)