Skip to content

Commit

Permalink
install::collect_dependencies: early cut on marker type
Browse files Browse the repository at this point in the history
Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed May 28, 2024
1 parent e974416 commit 56abc4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/install/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ def collect_dependencies(config, item, items):
dependencies = list()
markers = item.own_markers
for marker in markers:
if marker.name != 'dependency':
continue
depends = marker.kwargs.get('depends')
scope = marker.kwargs.get('scope')
if marker.name == 'dependency' and depends:
if depends:
for depend in depends:
if scope == 'session' or scope == 'package':
depend_module, depend_func = depend.split("::", 1)
Expand Down

0 comments on commit 56abc4e

Please sign in to comment.