adding internal repr for debugging

adding an example for generating multi-args/multi python tests

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-09-30 18:36:04 +02:00
parent aed66120a2
commit 496e3b1138
3 changed files with 74 additions and 1 deletions

View File

@@ -17,6 +17,12 @@ def test_getfuncargnames():
if sys.version_info < (3,0):
assert funcargs.getfuncargnames(A.f) == ['arg1']
def test_callspec_repr():
cs = funcargs.CallSpec({}, 'hello', 1)
repr(cs)
cs = funcargs.CallSpec({}, 'hello', funcargs._notexists)
repr(cs)
class TestFillFuncArgs:
def test_funcarg_lookupfails(self, testdir):
testdir.makeconftest("""
@@ -314,7 +320,6 @@ class TestRequestCachedSetup:
"*3 passed*"
])
class TestMetafunc:
def test_no_funcargs(self, testdir):
def function(): pass