MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_getfuncargnames_methods

Function test_getfuncargnames_methods

testing/python/fixtures.py:41–48  ·  view source on GitHub ↗

Test getfuncargnames for normal methods

()

Source from the content-addressed store, hash-verified

39
40
41def test_getfuncargnames_methods():
42 """Test getfuncargnames for normal methods"""
43
44 class A:
45 def f(self, arg1, arg2="hello"):
46 raise NotImplementedError()
47
48 assert getfuncargnames(A().f) == ("arg1",)
49
50
51def test_getfuncargnames_staticmethod():

Callers

nothing calls this directly

Calls 2

getfuncargnamesFunction · 0.90
AClass · 0.70

Tested by

no test coverage detected