Skip to content

Commit bd05971

Browse files
committed
fix: pytest attempting to collect TestsetGenerator class as a test class rather dataclass
1 parent 010b5fa commit bd05971

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ ragas-examples = { workspace = true }
146146
addopts = "-n 0"
147147
asyncio_default_fixture_loop_scope = "function"
148148
testpaths = ["tests"]
149+
python_classes = ["Test*"]
150+
filterwarnings = [
151+
"ignore:cannot collect test class 'TestsetGenerator':pytest.PytestCollectionWarning"
152+
]
149153

150154
[dependency-groups]
151155
# Full dev dependencies with all features (used by make install)

0 commit comments

Comments
 (0)