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

Function test_getfuncargnames_staticmethod_inherited

testing/python/fixtures.py:62–73  ·  view source on GitHub ↗

Test getfuncargnames for inherited staticmethods (#8061)

()

Source from the content-addressed store, hash-verified

60
61
62def test_getfuncargnames_staticmethod_inherited() -> None:
63 """Test getfuncargnames for inherited staticmethods (#8061)"""
64
65 class A:
66 @staticmethod
67 def static(arg1, arg2, x=1):
68 raise NotImplementedError()
69
70 class B(A):
71 pass
72
73 assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2")
74
75
76def test_getfuncargnames_partial():

Callers

nothing calls this directly

Calls 1

getfuncargnamesFunction · 0.90

Tested by

no test coverage detected