diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 763c69f..f49f8b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,5 +33,5 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install -e ".[dev]" - - run: pytest -v + - run: python -m pytest -v --tb=short - run: skilldiff demo diff --git a/pyproject.toml b/pyproject.toml index 40f8e0e..966850d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,8 @@ packages = ["skilldiff"] [tool.pytest.ini_options] testpaths = ["tests"] asyncio_mode = "auto" -addopts = "-q" +asyncio_default_fixture_loop_scope = "function" +addopts = "-q --tb=short" pythonpath = ["."] [tool.ruff] diff --git a/skilldiff/__main__.py b/skilldiff/__main__.py new file mode 100644 index 0000000..7a758ec --- /dev/null +++ b/skilldiff/__main__.py @@ -0,0 +1,6 @@ +"""Allow `python -m skilldiff`.""" + +from skilldiff.main import app + +if __name__ == "__main__": + app() diff --git a/tests/test_gemini_history.py b/tests/test_gemini_history.py index 5f230d9..290fb46 100644 --- a/tests/test_gemini_history.py +++ b/tests/test_gemini_history.py @@ -49,4 +49,5 @@ def test_messages_to_gemini_contents_replays_raw_model_content() -> None: ] ) assert contents[1] is model_content + assert contents[2].parts is not None assert contents[2].parts[0].function_response is not None