We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8041994 commit 7237310Copy full SHA for 7237310
1 file changed
test/bases/renku_data_services/data_api/test_schemathesis.py
@@ -10,9 +10,16 @@
10
from schemathesis.specs.openapi.schemas import BaseOpenAPISchema
11
12
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
20
@pytest.fixture(scope="session")
21
def requests_statistics():
- stats = []
22
+ stats = _RequestsStatistics()
23
yield stats
24
25
if len(stats) < 2:
0 commit comments