I am trying to set a new argument in my test suite and I would like to pass it along pytest commands (e.g. pytest --arg=foo
, or pytest --arg=bar path/to/test.py::test_func
). Then, those arguments must be used inside some other module. Not test one.
I tried with sys.argv as it is the easiest method and I only need one argument.