Skip to content

Commit 4355fa9

Browse files
committed
WIP PoC to allow not rerunning a cached dependency
* requires RKrahl/pytest-dependency#77, must document that somewhere (but it's "just convenience") FIXME: * only demonstrates the hook, does nto yet probe the cache
1 parent ce5e37c commit 4355fa9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/install/conftest.py

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
from lib.commands import local_cmd, scp, ssh
77

8+
def pytest_dependency_override_skip(item: pytest.Item, dependency: str, scope: str) -> bool:
9+
if dependency == "TestInstallNested::test_upgrade_nested_821_uefi":
10+
return True
11+
return False
12+
813
# auto-collect tests that are dependencies of selected ones
914
# adapted from RKrahl/pytest-dependency#56
1015
def collect_dependencies(config, item, items):

0 commit comments

Comments
 (0)