Files
veritext/src/veritext/pytest_plugin/__init__.py
Kai Chappell cd36c54e22 feat(pytest-plugin): add plugin hooks and markers
Register text_validation marker via pytest_configure hook.
2026-02-03 17:40:33 +00:00

23 lines
667 B
Python

"""Pytest plugin for text validation.
This plugin provides native pytest integration for Veritext, enabling
text validation assertions in test suites.
Example:
>>> from veritext.pytest_plugin import validate_text
>>>
>>> def test_summary_quality():
... text = "The quick brown fox jumps over the lazy dog."
... validate_text(
... text,
... min_length=10,
... max_length=100,
... max_reading_grade=8.0,
... )
"""
from veritext.pytest_plugin.assertions import validate_text
from veritext.pytest_plugin.plugin import pytest_configure
__all__ = ["pytest_configure", "validate_text"]