conftest.py 458 B

12345678910111213141516
  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))")
  10. config.addinivalue_line("markers", "obsolete: mark test as obsolete and soon to be removed")