[TIP] pytest

James bjlockie at lockie.ca
Fri Oct 14 10:00:35 PDT 2016

I have this in my config file:
def A(request):
     return request.config.getoption("--A")

skip_A = pytest.mark.skipif(
     reason="need --A option to run"

but when I run it, it says
E   NameError: name 'A' is not defined

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20161014/23d5e4af/attachment.html>

More information about the testing-in-python mailing list