We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152a74d commit cf75de7Copy full SHA for cf75de7
src/sentry/utils/pytest/sentry.py
@@ -1,5 +1,7 @@
1
from __future__ import absolute_import
2
3
+import pytest
4
+
5
from sentry.utils.compat import mock
6
import os
7
from hashlib import md5
@@ -242,6 +244,7 @@ def pytest_collection_modifyitems(config, items):
242
244
243
245
- Filter tests that subclass SnubaTestCase as tests in `tests/acceptance` are not being marked as `snuba`
246
- Select tests based on group and group strategy
247
+ - Configure pytest-sentry
248
249
"""
250
@@ -288,3 +291,6 @@ def pytest_collection_modifyitems(config, items):
288
291
if len(discard) > 0:
289
292
items[:] = keep
290
293
config.hook.pytest_deselected(items=discard)
294
295
+ for item in items:
296
+ item.add_marker(pytest.mark.sentry_client({"traces_sample_rate": 0.1}))
0 commit comments