Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unittests #444

Merged
10 commits merged into from
Nov 7, 2022
Prev Previous commit
Skip benchmarks by default
  • Loading branch information
dagardner-nv committed Nov 7, 2022
commit 277ecaef37e4ceedc159b1df630fdebd53ce387d
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ def pytest_runtest_setup(item):
if (item.get_closest_marker("kafka") is not None):
pytest.skip("Skipping Kafka tests by default. Use --run_kafka to enable")

if (not item.config.getoption("--run_benchmark")):
if (item.get_closest_marker("benchmark") is not None):
pytest.skip("Skipping benchmark tests by default. Use --run_benchmark to enable")


def pytest_collection_modifyitems(config, items):
"""
Expand Down