conftest.py 360 B

1234567891011121314
  1. import os
  2. import sys
  3. pytest_plugins = ["sentry.utils.pytest"]
  4. sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
  5. def pytest_configure(config):
  6. import warnings
  7. # XXX(dcramer): Kombu throws a warning due to transaction.commit_manually
  8. # being used
  9. warnings.filterwarnings("error", "", Warning, r"^(?!(|kombu|raven|sentry))")