Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shared/db_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ def _parse_quantum_summary() -> dict[str, Any]:
return {}


def log_quantum_run_safe(job, result: dict[str, Any], dataset_name: str, log_path: str) -> dict[str, Any]: # noqa: ANN001
def log_quantum_run_safe(
job, result: dict[str, Any], dataset_name: str, log_path: str
) -> dict[str, Any]: # noqa: ANN001
"""Best-effort quantum run logging; returns a skip/error dict on failure."""
conn = _get_conn()
if not conn:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_agent_mode_delegation_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ def test_alias_sources_exist_as_alternate_mode_agent_names() -> None:
assert sources, "Expected alias source entries in alias section"
available = {n for n in (_extract_agent_name(p) for p in AGENTS_DIR.glob("*.agent.md")) if n}
missing_sources = sorted({s for s in sources if s not in available})
assert not missing_sources, (
f"Alias source names should map to existing alternate-mode agent names: {missing_sources}"
)
assert (
not missing_sources
), f"Alias source names should map to existing alternate-mode agent names: {missing_sources}"


@pytest.mark.unit
Expand Down
6 changes: 3 additions & 3 deletions tests/test_aria_auto_execute_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def test_auto_execute_settings_persistence_wiring_present() -> None:
assert "aria-autoexec-use-llm" in html, "Auto-execute should persist use-llm toggle"
assert "aria-autoexec-show-state" in html, "Auto-execute should persist show-state toggle"
assert "restoreAutoExecuteSettings()" in html, "Auto-execute should restore saved settings on load"
assert "persistAutoExecuteSettings(provider, model, useLlm, showState)" in html, (
"Auto-execute should persist settings before requests"
)
assert (
"persistAutoExecuteSettings(provider, model, useLlm, showState)" in html
), "Auto-execute should persist settings before requests"


def test_auto_execute_quantum_toolbar_and_presets() -> None:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_orchestrator_health_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def test_orchestrator_health_aggregates_autonomous_training(app_module: ModuleTy
orchestrators = data["orchestrator_health"]["orchestrators"]

# If status file exists, should be included
assert "autonomous_training" in orchestrators, (
"autonomous_training orchestrator missing despite status file present."
)
assert (
"autonomous_training" in orchestrators
), "autonomous_training orchestrator missing despite status file present."
orch = orchestrators["autonomous_training"]
assert "status" in orch
assert "cycles_completed" in orch or "error" in orch
Expand Down
6 changes: 3 additions & 3 deletions tests/test_parallel_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def test_parallel_status_structure():
# diversity_avg must equal score
assert entry.get("diversity_avg") == entry.get("score"), "alias score mismatch"
if metric == "perplexity_improvement" and "perplexity_improvement" in entry:
assert pytest.approx(entry["perplexity_improvement"], rel=1e-3) == entry["score"], (
"improvement score mismatch"
)
assert (
pytest.approx(entry["perplexity_improvement"], rel=1e-3) == entry["score"]
), "improvement score mismatch"
18 changes: 9 additions & 9 deletions tests/test_training_analytics_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def test_training_analytics_report_pipe_head_with_pipefail_exits_zero() -> None:
timeout=30,
)

assert proc.returncode == 0, (
f"expected zero exit with pipefail enabled, got {proc.returncode}; stderr={proc.stderr!r}"
)
assert (
proc.returncode == 0
), f"expected zero exit with pipefail enabled, got {proc.returncode}; stderr={proc.stderr!r}"


@pytest.mark.unit
Expand Down Expand Up @@ -173,9 +173,9 @@ def test_training_analytics_chart_pipe_head_with_pipefail_exits_zero() -> None:
timeout=30,
)

assert proc.returncode == 0, (
f"expected zero exit for chart mode under pipefail, got {proc.returncode}; stderr={proc.stderr!r}"
)
assert (
proc.returncode == 0
), f"expected zero exit for chart mode under pipefail, got {proc.returncode}; stderr={proc.stderr!r}"


@pytest.mark.unit
Expand All @@ -194,6 +194,6 @@ def test_training_analytics_default_mode_pipe_head_with_pipefail_exits_zero() ->
timeout=30,
)

assert proc.returncode == 0, (
f"expected zero exit for default mode under pipefail, got {proc.returncode}; stderr={proc.stderr!r}"
)
assert (
proc.returncode == 0
), f"expected zero exit for default mode under pipefail, got {proc.returncode}; stderr={proc.stderr!r}"
6 changes: 3 additions & 3 deletions tests/test_ui_playwright.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def test_client_add_pickup_and_drag_updates_server():

# wait for server to report it
obj = wait_for_object(unique_name, timeout=5.0)
assert obj is not None, (
f"Server didn't report new object {unique_name}: {requests.get(SERVER_URL + '/api/aria/state').text}"
)
assert (
obj is not None
), f"Server didn't report new object {unique_name}: {requests.get(SERVER_URL + '/api/aria/state').text}"

# Now pick the object up using client function
page.evaluate("(name) => pickUpObject(name)", unique_name)
Expand Down
Loading