Skip to content

Commit a40e4d2

Browse files
committed
Update command name
1 parent eda34a0 commit a40e4d2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ jobs:
508508
run: |
509509
. venv/bin/activate
510510
pip install -e .
511-
pytest --primer_stdlib -n auto
511+
pytest --primer-stdlib -n auto
512512
513513
pytest-primer-external:
514514
name: Run primer tests on external libs Python ${{ matrix.python-version }} (Linux)
@@ -542,4 +542,4 @@ jobs:
542542
run: |
543543
. venv/bin/activate
544544
pip install -e .
545-
pytest --primer_external -n auto
545+
pytest --primer-external -n auto

tests/conftest.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def reporter():
6060

6161
def pytest_addoption(parser) -> None:
6262
parser.addoption(
63-
"--primer_stdlib",
63+
"--primer-stdlib",
6464
action="store_true",
6565
default=False,
6666
help="Run primer stdlib tests",
6767
)
6868
parser.addoption(
69-
"--primer_external",
69+
"--primer-external",
7070
action="store_true",
7171
default=False,
7272
help="Run primer external tests",
@@ -76,18 +76,18 @@ def pytest_addoption(parser) -> None:
7676
def pytest_collection_modifyitems(config, items) -> None:
7777
"""Convert command line options to markers"""
7878
# Add skip_primer_stdlib mark
79-
if not config.getoption("--primer_external"):
79+
if not config.getoption("--primer-external"):
8080
skip_primer_external = pytest.mark.skip(
81-
reason="need --primer_external option to run"
81+
reason="need --primer-external option to run"
8282
)
8383
for item in items:
8484
if "primer_external" in item.keywords:
8585
item.add_marker(skip_primer_external)
8686

8787
# Add skip_primer_stdlib mark
88-
if not config.getoption("--primer_stdlib"):
88+
if not config.getoption("--primer-stdlib"):
8989
skip_primer_stdlib = pytest.mark.skip(
90-
reason="need --primer_stdlib option to run"
90+
reason="need --primer-stdlib option to run"
9191
)
9292
for item in items:
9393
if "primer_stdlib" in item.keywords:

0 commit comments

Comments
 (0)