(env2)./~pinocchio git:namedattr ❯❯❯ nosetests --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a runlevel=default -s
Running test_me_runlevel_default
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
(env2)./~pinocchio git:namedattr ❯❯❯ nosetests --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a runlevel=quick -s
Running test_me_runlevel_quick
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
(env2)./~pinocchio git:namedattr ❯❯❯ nosetests --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a runlevel=express -s
Running test_me_runlevel_express
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
(env2)./~pinocchio git:namedattr ❯❯❯ nosetests --decorator-file examples/test_decorator.attribs examples/test_decorator.py -a runlevel=extensive -s
Running test_me_runlevel_extensive
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
We can now give values to the attributes with the following syntax :
mymodule.MyTestClass.my_test_method: attr=attr_value
I also updated the example.
Output :