Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
nsfarm
Commits
79af6d5f
Verified
Commit
79af6d5f
authored
Jul 22, 2021
by
Karel Koci
🤘
Browse files
selftests/target: use ids for target
This converts argument identification from 'target0' to real name of target.
parent
0add2f74
Changes
1
Hide whitespace changes
Inline
Side-by-side
selftests/target/conftest.py
View file @
79af6d5f
...
...
@@ -6,6 +6,6 @@ def pytest_generate_tests(metafunc):
return
targets
=
[
target
for
target
in
metafunc
.
config
.
targets
.
values
()
if
target
.
is_available
()]
if
targets
:
metafunc
.
parametrize
(
"target"
,
targets
)
metafunc
.
parametrize
(
"target"
,
targets
,
ids
=
[
target
.
name
for
target
in
targets
]
)
else
:
metafunc
.
parametrize
(
"target"
,
[
pytest
.
param
(
"no-target"
,
marks
=
pytest
.
mark
.
skip
)])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment