diff --git a/tests/test_training_plots.py b/tests/test_training_plots.py index e46d0bd..b095e70 100644 --- a/tests/test_training_plots.py +++ b/tests/test_training_plots.py @@ -327,7 +327,7 @@ def test_cli_analyze_metrics_smoke(tmp_path: Path): runner = CliRunner() result = runner.invoke(app, ["analyze", "metrics", str(run_dir), "--out", str(out_dir)]) - if result.exit_code != 0 and "LaTeX" in str(result.output): + if result.exit_code != 0 and "latex" in (str(result.output) + str(result.exception)).lower(): pytest.skip("LaTeX rendering unavailable") - assert result.exit_code == 0, result.output + assert result.exit_code == 0, result.output or result.exception assert any(out_dir.glob("*.pdf"))