conftest.py 502 B

12345678910111213141516171819
  1. from __future__ import absolute_import
  2. import os
  3. import sys
  4. pytest_plugins = [
  5. 'sentry.utils.pytest'
  6. ]
  7. sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
  8. def pytest_configure(config):
  9. import warnings
  10. # XXX(dcramer): Riak throws a UserWarning re:OpenSSL which isnt important
  11. # to tests
  12. # XXX(dramer): Kombu throws a warning due to transaction.commit_manually
  13. # being used
  14. warnings.filterwarnings('error', '', Warning, r'^(?!(|kombu|raven|riak|sentry))')