Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
fix suite dependencies (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenNaihin authored Jul 26, 2023
1 parent a36f5ff commit 5e3bbb9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions agbenchmark/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,17 @@ def pytest_collection_modifyitems(items: Any, config: Any) -> None:
if (
config.getoption("--improve")
or config.getoption("--category")
or config.getoption("--suite")
or test_class_instance.setup_dependencies # same_task suite
):
dependencies = [dep for dep in dependencies if not data.get(dep, None)]
if config.getoption("--test"):
dependencies = []

if config.getoption("--no_dep"):
if (
config.getoption("--test")
or ( # separate task suite
not test_class_instance.setup_dependencies
and config.getoption("--suite")
)
or config.getoption("--no_dep")
):
dependencies = []

categories = test_class_instance.data.category
Expand Down

0 comments on commit 5e3bbb9

Please sign in to comment.