mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Add truncate option support
This commit is contained in:
parent
e3e09d31b5
commit
e5fe6986dd
3 changed files with 23 additions and 12 deletions
|
|
@ -385,8 +385,8 @@ def test_single_watch_no_comma():
|
|||
)
|
||||
|
||||
|
||||
def test_long_variable():
|
||||
@pysnooper.snoop()
|
||||
def test_long_variable_with_truncate():
|
||||
@pysnooper.snoop(max_variable_length=100)
|
||||
def my_function():
|
||||
foo = list(range(1000))
|
||||
return foo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue