MCPcopy Create free account
hub / github.com/holoviz/hvplot / Spy

Class Spy

hvplot/tests/testinteractive.py:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57class Spy:
58 def __init__(self):
59 self.count = 0
60 self.calls = {}
61
62 def __repr__(self):
63 return f'Spy(count={self.count!r}, calls={self.calls!r})'
64
65 def register_call(self, called_args, called_kwargs, **kwargs):
66 self.calls[self.count] = CallCtxt(called_args, called_kwargs, **kwargs)
67 self.count += 1
68
69
70@pytest.fixture

Callers 1

clone_spyFunction · 0.85

Calls

no outgoing calls

Tested by 1

clone_spyFunction · 0.68