|
@@ -19,7 +19,9 @@ def pytest_configure(config):
|
|
warnings.filterwarnings("error", "", Warning, r"^(?!(|kombu|raven|sentry))")
|
|
warnings.filterwarnings("error", "", Warning, r"^(?!(|kombu|raven|sentry))")
|
|
|
|
|
|
# if we are running any tests for plugins, we need to make sure we install them first
|
|
# if we are running any tests for plugins, we need to make sure we install them first
|
|
- if any("tests/sentry_plugins" in s for s in config.getoption("file_or_dir")):
|
|
|
|
|
|
+ # (for `py.test --version` or `py.test --help`, there are no files to test)
|
|
|
|
+ test_targets = config.getoption("file_or_dir")
|
|
|
|
+ if test_targets and any("tests/sentry_plugins" in s for s in test_targets):
|
|
install_sentry_plugins()
|
|
install_sentry_plugins()
|
|
|
|
|
|
|
|
|