New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow to dynamically modify all ini-values from plugins #204
Comments
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): The config.addinivalue_line is meant to add to linelists, not args. In the meanwhile here is a workaround. If you use this conftest.py::
and add a test like this::
you can run it as expected::
|
This works for me on current def pytest_addoption(parser):
parser.addoption('--bench',
action="store_true", dest="bench", default=False,
help=("Enable benchmark mode"))
def pytest_configure(config):
if config.getvalue("bench"):
config.addinivalue_line("python_files", "bench_*.py")
config.addinivalue_line("python_functions", "bench_")
So I'm closing this for now. 😄 |
Bugfix/server fixtures
Originally reported by: Alexander Schepanovski (BitBucket: suor, GitHub: suor)
Here is my conftest.py
and it raises AssertError.
The text was updated successfully, but these errors were encountered: