fix(pytest-plugin): remove duplicate plugin registration in tests

The pytest plugin is already loaded via the entry point, so explicitly
declaring it in conftest causes a duplicate registration error.
This commit is contained in:
2026-02-04 00:43:20 +00:00
parent 564d663c78
commit 7de4505e31
2 changed files with 6 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed unbounded cache growth in `SemanticSimilarity` by implementing LRU eviction with configurable max size - Fixed unbounded cache growth in `SemanticSimilarity` by implementing LRU eviction with configurable max size
- Fixed mutable list aliasing in `AllOf` and `AnyOf` composite validators - Fixed mutable list aliasing in `AllOf` and `AnyOf` composite validators
- Fixed regex pattern validation in `ContainsValidator` and `ExcludesValidator` to fail at init time rather than during `check()` - Fixed regex pattern validation in `ContainsValidator` and `ExcludesValidator` to fail at init time rather than during `check()`
- Fixed pytest plugin tests failing with duplicate plugin registration error
### Added ### Added

View File

@@ -5,12 +5,11 @@ import pytest
@pytest.fixture @pytest.fixture
def plugin_pytester(pytester: pytest.Pytester) -> pytest.Pytester: def plugin_pytester(pytester: pytest.Pytester) -> pytest.Pytester:
"""Configure pytester to use the veritext plugin.""" """Configure pytester to use the veritext plugin.
pytester.makeconftest(
""" Note: The plugin is already loaded via the entry point in pyproject.toml,
pytest_plugins = ['veritext.pytest_plugin'] so no explicit pytest_plugins declaration is needed.
""" """
)
return pytester return pytester