pytest-llm-assert 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/workflows/release.yml +1 -1
  2. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/PKG-INFO +1 -1
  3. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/examples/test_compare_models.py +3 -0
  4. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/pyproject.toml +1 -1
  5. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/integration/test_llm_integration.py +3 -5
  6. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_plugin.py +4 -5
  7. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/uv.lock +1 -1
  8. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.env.example +0 -0
  9. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/CODEOWNERS +0 -0
  10. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  11. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  12. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  13. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  14. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/dependabot.yml +0 -0
  15. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/workflows/ci.yml +0 -0
  16. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/workflows/codeql.yml +0 -0
  17. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/workflows/dependency-review.yml +0 -0
  18. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.github/workflows/stale.yml +0 -0
  19. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.gitignore +0 -0
  20. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/.pre-commit-config.yaml +0 -0
  21. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/CODE_OF_CONDUCT.md +0 -0
  22. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/CONTRIBUTING.md +0 -0
  23. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/LICENSE +0 -0
  24. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/README.md +0 -0
  25. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/SECURITY.md +0 -0
  26. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/docs/GITHUB_SETUP_GUIDE.md +0 -0
  27. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/docs/README.md +0 -0
  28. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/docs/api-reference.md +0 -0
  29. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/docs/comparing-models.md +0 -0
  30. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/docs/configuration.md +0 -0
  31. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/examples/README.md +0 -0
  32. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/examples/conftest.py +0 -0
  33. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/examples/pytest_conftest.py +0 -0
  34. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/examples/test_basic.py +0 -0
  35. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/src/pytest_llm_assert/__init__.py +0 -0
  36. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/src/pytest_llm_assert/core.py +0 -0
  37. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/src/pytest_llm_assert/plugin.py +0 -0
  38. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/src/pytest_llm_assert/prompts/system_prompt.md +0 -0
  39. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/__init__.py +0 -0
  40. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/integration/__init__.py +0 -0
  41. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/__init__.py +0 -0
  42. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_assertion_result.py +0 -0
  43. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_azure_auth.py +0 -0
  44. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_error_handling.py +0 -0
  45. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_fixture_integration.py +0 -0
  46. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_llm_assert_core.py +0 -0
  47. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_llm_response.py +0 -0
  48. {pytest_llm_assert-0.2.2 → pytest_llm_assert-0.2.3}/tests/unit/test_response_parsing.py +0 -0
@@ -39,7 +39,7 @@ jobs:
39
39
  run: uv build
40
40
 
41
41
  - name: Upload build artifacts
42
- uses: actions/upload-artifact@v4
42
+ uses: actions/upload-artifact@v6
43
43
  with:
44
44
  name: dist
45
45
  path: dist/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-llm-assert
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Simple LLM-powered assertions for any pytest test
5
5
  Project-URL: Homepage, https://github.com/sbroenne/pytest-llm-assert
6
6
  Project-URL: Documentation, https://github.com/sbroenne/pytest-llm-assert#readme
@@ -56,6 +56,9 @@ def llm(request):
56
56
  return _get_azure_llm()
57
57
  elif request.param == "vertex":
58
58
  return _get_vertex_llm()
59
+ else:
60
+ msg = f"Unknown provider: {request.param}"
61
+ raise ValueError(msg)
59
62
 
60
63
 
61
64
  class TestModelComparison:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pytest-llm-assert"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Simple LLM-powered assertions for any pytest test"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -10,13 +10,8 @@ from __future__ import annotations
10
10
 
11
11
  import os
12
12
  from pathlib import Path
13
- from typing import TYPE_CHECKING
14
-
15
13
  import pytest
16
14
 
17
- if TYPE_CHECKING:
18
- from pytest_llm_assert import LLMAssert
19
-
20
15
 
21
16
  # Load .env from workspace root (search upward)
22
17
  def _find_env_file() -> Path | None:
@@ -106,6 +101,9 @@ def llm(request, azure_llm_factory, vertex_llm_factory):
106
101
  return azure_llm_factory(AZURE_DEPLOYMENT)
107
102
  elif request.param == "vertex":
108
103
  return vertex_llm_factory(VERTEX_MODEL)
104
+ else:
105
+ msg = f"Unknown provider: {request.param}"
106
+ raise ValueError(msg)
109
107
 
110
108
 
111
109
  class TestBasicAssertions:
@@ -77,16 +77,15 @@ class TestPackageExports:
77
77
 
78
78
  def test_version_available(self) -> None:
79
79
  """Package version should be accessible."""
80
- import pytest_llm_assert
80
+ from pytest_llm_assert import __version__
81
81
 
82
- assert hasattr(pytest_llm_assert, "__version__")
83
- assert pytest_llm_assert.__version__ == "0.1.0"
82
+ assert __version__ == "0.1.0"
84
83
 
85
84
  def test_all_exports(self) -> None:
86
85
  """__all__ should list expected exports."""
87
- import pytest_llm_assert
86
+ from pytest_llm_assert import __all__ as exports
88
87
 
89
- assert set(pytest_llm_assert.__all__) == {
88
+ assert set(exports) == {
90
89
  "LLMAssert",
91
90
  "AssertionResult",
92
91
  "LLMResponse",
@@ -1561,7 +1561,7 @@ wheels = [
1561
1561
 
1562
1562
  [[package]]
1563
1563
  name = "pytest-llm-assert"
1564
- version = "0.2.2"
1564
+ version = "0.2.3"
1565
1565
  source = { editable = "." }
1566
1566
  dependencies = [
1567
1567
  { name = "azure-identity" },