MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_callable_argspec_call

Method test_callable_argspec_call

test/base/test_utils.py:2551–2561  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2549 )
2550
2551 def test_callable_argspec_call(self):
2552 class Foo:
2553 def __call__(self, x, y):
2554 pass
2555
2556 eq_(
2557 get_callable_argspec(Foo()),
2558 compat.FullArgSpec(
2559 ["self", "x", "y"], None, None, None, [], None, {}
2560 ),
2561 )
2562
2563 def test_callable_argspec_call_no_self(self):
2564 class Foo:

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
get_callable_argspecFunction · 0.90
FooClass · 0.70

Tested by

no test coverage detected