From 0950ff360f0e250c047bb357efe21e55d5bc7a48 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 8 Apr 2025 19:37:42 -0700 Subject: [PATCH] More verbosity in tests in CI, refs #901 --- .github/workflows/test.yml | 2 +- tests/test_templates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0535247..66db895 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: pip install -e '.[test]' - name: Run tests run: | - pytest + python -m pytest -vv - name: Check if cog needs to be run if: matrix.os != 'windows-latest' run: | diff --git a/tests/test_templates.py b/tests/test_templates.py index e2d60e3..17e3d39 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -368,5 +368,5 @@ def test_execute_prompt_from_template_path(): ["-t", str(path), "-m", "echo"], catch_exceptions=False, ) - assert result.exit_code == 0 + assert result.exit_code == 0, result.output assert result.output.strip() == "system:\nsystem\n\nprompt:\nprompt"