Add truncate option support

This commit is contained in:
Guoqiang Ding 2019-08-23 16:45:16 +08:00 committed by Ram Rachum
parent e3e09d31b5
commit e5fe6986dd
3 changed files with 23 additions and 12 deletions

View file

@ -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