23 lines
667 B
Python
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"]
|