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

Function test_getfuncargnames_staticmethod

testing/python/fixtures.py:51–59  ·  view source on GitHub ↗

Test getfuncargnames for staticmethods

()

Source from the content-addressed store, hash-verified

49
50
51def test_getfuncargnames_staticmethod():
52 """Test getfuncargnames for staticmethods"""
53
54 class A:
55 @staticmethod
56 def static(arg1, arg2, x=1):
57 raise NotImplementedError()
58
59 assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
60
61
62def test_getfuncargnames_staticmethod_inherited() -> None:

Callers

nothing calls this directly

Calls 1

getfuncargnamesFunction · 0.90

Tested by

no test coverage detected