O'Reilly logo
  • Chris Kang thinks this is interesting:

pytestconfig.option.foo

From

Cover of Python Testing with pytest

Note

Directly access the property instead of getting it through a getter method: pytestconfig.getoption(​'foo'​)