[py-dev] funcarg in a class

Joan Miller peloko45 at gmail.com
Thu Dec 31 18:25:52 CET 2009


Is possible to run a funcarg inner of a class? The nex code doesnt works.

--------------------------
class TestFoo(object):

    def pytest_funcarg__myfuncarg(self, request):
        return 13


    def test_function(self, append):
        assert self.myfuncarg == 13
--------------------------


http://codespeak.net/py/dist/test/funcargs.html


More information about the py-dev mailing list