Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cool-RR/PySnooper
/ Foo
Class
Foo
tests/test_pysnooper.py:340–345 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
338
@pytest.mark.parametrize(
"normalize"
, (True, False))
339
def
test_watch(normalize):
340
class
Foo(object):
341
def
__init__(self):
342
self.x = 2
343
344
def
square(self):
345
self.x **= 2
346
347
@pysnooper.snoop(watch=(
348
'foo.x'
,
Callers
1
my_function
Function · 0.85
Calls
no outgoing calls
Tested by
1
my_function
Function · 0.68