MCPcopy
hub / github.com/pytest-dev/pytest / test_getfuncargnames_staticmethod

Function test_getfuncargnames_staticmethod

testing/python/fixtures.py:71–79  ·  view source on GitHub ↗

Test getfuncargnames for staticmethods

()

Source from the content-addressed store, hash-verified

69
70
71def test_getfuncargnames_staticmethod():
72 """Test getfuncargnames for staticmethods"""
73
74 class A:
75 @staticmethod
76 def static(arg1, arg2, x=1):
77 raise NotImplementedError()
78
79 assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
80
81
82def test_getfuncargnames_staticmethod_inherited() -> None:

Callers

nothing calls this directly

Calls 1

getfuncargnamesFunction · 0.90

Tested by

no test coverage detected