From 4066e2268f06bcebe1ca74cedfa984778259260d Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Sat, 25 Jul 2026 18:32:17 -0600 Subject: [PATCH] style(tests): format talent-failure scan tests Format the talent-failure scan tests added in 17ed84025 so the full format gate stays clean. Co-Authored-By: Claude Opus 5 (1M context) --- tests/test_convey_apps.py | 7 ++----- tests/test_talent_runs.py | 18 ++++++------------ 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/tests/test_convey_apps.py b/tests/test_convey_apps.py index 7e954c75e..62e89c2d4 100644 --- a/tests/test_convey_apps.py +++ b/tests/test_convey_apps.py @@ -477,9 +477,7 @@ class TestAttentionResolution: assert "1" in result.placeholder_text assert len(result.placeholder_text) <= 90 - def test_p0_cortex_error_executed_today_from_old_index( - self, tmp_path, monkeypatch - ): + def test_p0_cortex_error_executed_today_from_old_index(self, tmp_path, monkeypatch): """A run executed today surfaces even if recorded under an older journal day.""" import json from datetime import datetime, timedelta @@ -564,8 +562,7 @@ class TestAttentionResolution: assert "import" not in result.placeholder_text assert any("incomplete" in line for line in result.context_lines) assert any( - "Do not report a zero error count" in line - for line in result.context_lines + "Do not report a zero error count" in line for line in result.context_lines ) def test_p0_readiness_error_prefers_setup_guidance(self, tmp_path, monkeypatch): diff --git a/tests/test_talent_runs.py b/tests/test_talent_runs.py index d34ec6068..16dd0212c 100644 --- a/tests/test_talent_runs.py +++ b/tests/test_talent_runs.py @@ -191,9 +191,7 @@ def _epoch_ms(value: datetime) -> int: @freeze_time("2026-07-25 12:00:00") -def test_default_scan_counts_today_execution_in_old_journal_day( - monkeypatch, tmp_path -): +def test_default_scan_counts_today_execution_in_old_journal_day(monkeypatch, tmp_path): monkeypatch.setenv("SOLSTONE_JOURNAL", str(tmp_path)) now = datetime.now() _write_day( @@ -211,9 +209,9 @@ def test_default_scan_counts_today_execution_in_old_journal_day( scan = read_unresolved_agent_failures() assert scan.ok is True - assert [(failure.use_id, failure.name, failure.ts) for failure in scan.failures] == [ - ("today-old-index", "flow", _epoch_ms(now)) - ] + assert [ + (failure.use_id, failure.name, failure.ts) for failure in scan.failures + ] == [("today-old-index", "flow", _epoch_ms(now))] @freeze_time("2026-07-25 12:00:00") @@ -309,9 +307,7 @@ def test_default_scan_keeps_later_failure_across_journal_day_indexes( @freeze_time("2026-07-25 12:00:00") -def test_default_scan_unreadable_index_returns_partial_degraded( - monkeypatch, tmp_path -): +def test_default_scan_unreadable_index_returns_partial_degraded(monkeypatch, tmp_path): monkeypatch.setenv("SOLSTONE_JOURNAL", str(tmp_path)) now = datetime.now() readable = _write_day( @@ -419,9 +415,7 @@ def test_default_scan_excludes_entries_without_today_attributable_ts( @freeze_time("2026-07-25 12:00:00") -def test_explicit_day_scan_keeps_journal_day_timestamp_semantics( - monkeypatch, tmp_path -): +def test_explicit_day_scan_keeps_journal_day_timestamp_semantics(monkeypatch, tmp_path): monkeypatch.setenv("SOLSTONE_JOURNAL", str(tmp_path)) old_ts = _epoch_ms(datetime.now() - timedelta(days=4)) _write_day( -- 2.51.2