Skip to content

Commit 1a7eb06

Browse files
committed
fix: pytest attempting to collect TestsetGenerator class as a test class rather dataclass
1 parent db9fbac commit 1a7eb06

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
@@ -144,6 +144,10 @@ ragas-examples = { workspace = true }
144144
addopts = "-n 0"
145145
asyncio_default_fixture_loop_scope = "function"
146146
testpaths = ["tests"]
147+
python_classes = ["Test*"]
148+
filterwarnings = [
149+
"ignore:cannot collect test class 'TestsetGenerator':pytest.PytestCollectionWarning"
150+
]
147151

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

0 commit comments

Comments
 (0)