Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anjan Momi
pmbootstrap
Commits
29b9a57c
Unverified
Commit
29b9a57c
authored
5 months ago
by
Casey
Browse files
Options
Downloads
Patches
Plain Diff
test: conftest: describe paramaterize for config_file (MR 2477)
Signed-off-by:
Caleb Connolly
<
caleb@postmarketos.org
>
parent
953f84a7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pmb/conftest.py
+3
-0
3 additions, 0 deletions
pmb/conftest.py
with
3 additions
and
0 deletions
pmb/conftest.py
+
3
−
0
View file @
29b9a57c
...
...
@@ -12,6 +12,9 @@ from pmb.helpers.args import init as init_args
_testdir
=
Path
(
__file__
).
parent
/
"
data/tests
"
# request can be specified using parameterize from test cases
# e.g. @pytest.mark.parametrize("config_file", ["no-repos"], indirect=True)
# will set request.param to "no-repos"
@pytest.fixture
def
config_file
(
tmp_path_factory
,
request
):
"""
Fixture to create a temporary pmbootstrap_v3.cfg file.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment