Skip to content

Commit 7237310

Browse files
authored
chore: improve schemathesis logs (#473)
1 parent 8041994 commit 7237310

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

test/bases/renku_data_services/data_api/test_schemathesis.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010
from schemathesis.specs.openapi.schemas import BaseOpenAPISchema
1111

1212

13+
class _RequestsStatistics(list):
14+
"""Subclass of list to avoid polluting schemathesis logs with data points."""
15+
16+
def __repr__(self):
17+
return f"RequestsStatistics(len={len(self)})"
18+
19+
1320
@pytest.fixture(scope="session")
1421
def requests_statistics():
15-
stats = []
22+
stats = _RequestsStatistics()
1623
yield stats
1724

1825
if len(stats) < 2:

0 commit comments

Comments
 (0)