We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82de65b commit b33280dCopy full SHA for b33280d
conftest.py
@@ -144,15 +144,15 @@ def _es_metrics_marker(request):
144
"""
145
marker = request.node.get_closest_marker('es_metrics')
146
147
- if marker:
148
- with (
149
- override_switch(features.ELASTICSEARCH_METRICS, active=True),
150
- djelme_test_backends(),
151
- ):
152
- yield
153
- else:
154
- with override_switch(features.ELASTICSEARCH_METRICS, active=False):
155
+ if not marker:
+ yield
+ return
+
+ with (
+ override_switch(features.ELASTICSEARCH_METRICS, active=True),
+ djelme_test_backends(),
+ ):
156
157
158
@pytest.fixture
0 commit comments