pytest-grounding 0.0.2__tar.gz → 0.0.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 (27) hide show
  1. {pytest_grounding-0.0.2/pytest_grounding.egg-info → pytest_grounding-0.0.3}/PKG-INFO +1 -1
  2. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/__init__.py +3 -2
  3. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pyproject.toml +1 -1
  4. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3/pytest_grounding.egg-info}/PKG-INFO +1 -1
  5. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/tests/test_text.py +10 -0
  6. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/LICENSE +0 -0
  7. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/README.md +0 -0
  8. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/_capture.py +0 -0
  9. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/_normalize.py +0 -0
  10. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/_text.py +0 -0
  11. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/claim.py +0 -0
  12. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/cli.py +0 -0
  13. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/guard.py +0 -0
  14. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/loaders.py +0 -0
  15. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/plugin.py +0 -0
  16. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/report_io.py +0 -0
  17. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/grounding/trace.py +0 -0
  18. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pytest_grounding.egg-info/SOURCES.txt +0 -0
  19. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pytest_grounding.egg-info/dependency_links.txt +0 -0
  20. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pytest_grounding.egg-info/entry_points.txt +0 -0
  21. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pytest_grounding.egg-info/requires.txt +0 -0
  22. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/pytest_grounding.egg-info/top_level.txt +0 -0
  23. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/setup.cfg +0 -0
  24. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/tests/test_capture.py +0 -0
  25. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/tests/test_loaders.py +0 -0
  26. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/tests/test_plugin.py +0 -0
  27. {pytest_grounding-0.0.2 → pytest_grounding-0.0.3}/tests/test_trace.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-grounding
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Turn assertions about data into re-runnable, provenance-tracked claims — written and reviewed by agents.
5
5
  Author-email: Sam Quigley <quigley@emerose.com>
6
6
  License: MIT
@@ -40,6 +40,7 @@ from ._capture import (
40
40
  record,
41
41
  registry,
42
42
  )
43
+ from ._normalize import collapse_ws, fold_match
43
44
  from ._text import match_phrase, sha256
44
45
  from .loaders import (
45
46
  DocRef,
@@ -57,8 +58,8 @@ __all__ = [
57
58
  "statement", "evidence", "uses",
58
59
  "strength", "caveats", "kind", "reviewed",
59
60
  "Capture", "current_capture", "record", "registry", "TRACKED_SUFFIXES",
60
- "match_phrase", "sha256",
61
+ "match_phrase", "sha256", "collapse_ws", "fold_match",
61
62
  "install_guard",
62
63
  ]
63
64
 
64
- __version__ = "0.0.2"
65
+ __version__ = "0.0.3"
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
  # makes it discoverable); the import package stays `grounding` (the friendly-import pattern
8
8
  # used by pytest-mock / pytest-django): pip install pytest-grounding, from grounding import …
9
9
  name = "pytest-grounding"
10
- version = "0.0.2"
10
+ version = "0.0.3"
11
11
  description = "Turn assertions about data into re-runnable, provenance-tracked claims — written and reviewed by agents."
12
12
  readme = "README.md"
13
13
  requires-python = ">=3.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-grounding
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Turn assertions about data into re-runnable, provenance-tracked claims — written and reviewed by agents.
5
5
  Author-email: Sam Quigley <quigley@emerose.com>
6
6
  License: MIT
@@ -2,6 +2,16 @@ from grounding._normalize import fold_match
2
2
  from grounding import match_phrase
3
3
 
4
4
 
5
+ def test_normalizer_is_public_api():
6
+ # collapse_ws + fold_match are part of the public surface so consumers can share the
7
+ # one canonical fold (e.g. a verdict-cache identity that must agree with quote matching).
8
+ import grounding
9
+
10
+ assert {"collapse_ws", "fold_match", "match_phrase", "sha256"} <= set(grounding.__all__)
11
+ assert grounding.fold_match("Ube3a–dosage *gene*") == "Ube3a-dosage gene"
12
+ assert grounding.collapse_ws("a b\n c") == "a b c"
13
+
14
+
5
15
  def test_fold_match_folds_dashes_markdown_and_whitespace():
6
16
  assert fold_match("Ube3a–dosage *gene*") == "Ube3a-dosage gene"
7
17