We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2416bf0 commit 5c69af9Copy full SHA for 5c69af9
1 file changed
tests/test_integration/test_openapi/test_schema.py
@@ -1,3 +1,5 @@
1
+import logging
2
+from collections.abc import Iterator
3
from typing import TYPE_CHECKING
4
5
import pytest
@@ -28,6 +30,14 @@ def _patch_response_validation(monkeypatch: pytest.MonkeyPatch) -> None:
28
30
)
29
31
32
33
+@pytest.fixture(autouse=True)
34
+def _disable_logging(settings: LazySettings) -> Iterator[None]:
35
+ # Logging has too much output with schemathesis:
36
+ logging.disable(logging.CRITICAL)
37
+ yield
38
+ logging.disable(logging.NOTSET)
39
+
40
41
# The `transactional_db` fixture is required to enable database access.
42
# When `st.openapi.from_wsgi()` makes a WSGI request, Django's request
43
# lifecycle triggers database operations.
0 commit comments