Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
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
Container Registry
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
89723376
Commit
89723376
authored
1 year ago
by
Yaroslav Dynnikov
Browse files
Options
Downloads
Patches
Plain Diff
chore: align usage of config.getoption in pytest
(cherry picked from commit
2dd61ef8
)
parent
2a5c43fb
No related branches found
Branches containing commit
Tags
23.12.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/conftest.py
+4
-4
4 additions, 4 deletions
test/conftest.py
with
4 additions
and
4 deletions
test/conftest.py
+
4
−
4
View file @
89723376
...
...
@@ -117,18 +117,18 @@ def seed(pytestconfig):
"""
Return a seed for randomized tests. Unless passed via
command-line options it is generated automatically.
"""
seed
=
pytestconfig
.
getoption
(
"
seed
"
)
seed
=
pytestconfig
.
getoption
(
"
--
seed
"
)
return
seed
if
seed
else
generate_seed
()
@pytest.fixture
(
scope
=
"
session
"
)
def
delay
(
pytestconfig
):
return
pytestconfig
.
getoption
(
"
delay
"
)
return
pytestconfig
.
getoption
(
"
--
delay
"
)
@pytest.fixture
(
scope
=
"
session
"
)
def
with_flamegraph
(
pytestconfig
):
return
bool
(
pytestconfig
.
getoption
(
"
with
_
flamegraph
"
))
return
bool
(
pytestconfig
.
getoption
(
"
--
with
-
flamegraph
"
))
@pytest.fixture
(
scope
=
"
session
"
)
...
...
@@ -1481,7 +1481,7 @@ def cargo_build(pytestconfig: pytest.Config) -> None:
return
features
=
[
"
error_injection
"
]
if
bool
(
pytestconfig
.
getoption
(
"
with
_
webui
"
)):
if
bool
(
pytestconfig
.
getoption
(
"
--
with
-
webui
"
)):
features
.
append
(
"
webui
"
)
cmd
=
[
"
cargo
"
,
"
build
"
,
"
--features
"
,
"
,
"
.
join
(
features
)]
...
...
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