MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / pytest_addoption

Function pytest_addoption

python/demo/conftest.py:4–12  ·  view source on GitHub ↗

Add command line options to pytest.

(parser)

Source from the content-addressed store, hash-verified

2
3
4def pytest_addoption(parser):
5 """Add command line options to pytest."""
6 parser.addoption(
7 "--mpiexec",
8 action="store",
9 default="mpiexec",
10 help="Name of program to run MPI, e.g. mpiexec",
11 )
12 parser.addoption("--num-proc", action="store", default=1, help="Number of MPI processes to use")
13
14
15@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected