Commit Graph

37 Commits

Author SHA1 Message Date
Alex Hall 750ef4c639 Rename to needs_parentheses 2019-05-03 22:54:41 +03:00
Alex Hall 7a1b457013 Only add parentheses to exploded expressions if needed 2019-05-03 22:54:41 +03:00
Alex Hall 2732922e1d Test output directly to Path object (currently fails) 2019-05-03 21:45:54 +03:00
Ram Rachum b805ea0dc4 Rename for coolness 2019-05-03 18:47:23 +03:00
Ram Rachum 28ede280fc Move __repr__ to base class 2019-05-03 18:47:23 +03:00
Ram Rachum d449f3ed91 Massaging some code 2019-05-03 18:47:23 +03:00
Alex Hall 215a580fa1 Tests for exploding variables 2019-05-03 18:47:23 +03:00
Mike Bayer 20e746ac92 Allow a callable to be passed to snoop()
Fixes: #80
2019-05-03 18:24:05 +03:00
Alex Hall 0322982875 More informative repr for exceptions. Forgot to use repr_instance 2019-04-28 14:29:11 +03:00
Alex Hall 4ec976bd14 PR feedback:
Swap imports
Raise maxother locally
Demo long variable output
2019-04-28 14:29:11 +03:00
Ram Rachum ec7687fab3 Add test_single_variable_no_comma 2019-04-26 12:53:46 +03:00
Ram Rachum e21fc11352 Massaging some code 2019-04-26 12:48:58 +03:00
Alex Hall c9a51de674 Test arbitrary expression evaluation. 2019-04-26 12:48:58 +03:00
Alex Hall a1471f6fb9 Use dedent for nice multiline string 2019-04-26 10:05:12 +03:00
Alex Hall 2708376bdf Fully readable failure from assert_output 2019-04-26 10:05:12 +03:00
Alex Hall 36b3271f0a Fix incorrect tuple passed to variables in test 2019-04-26 10:05:12 +03:00
Alex Hall d29cd6f464 Make it easier to read assert_output failure by showing mismatched line rather than just mismatched length. Also, .format can't evaluate arbitrary Python 2019-04-26 10:05:12 +03:00
Alex Hall 93edf6fced Remove more calls to decode using u prefix 2019-04-26 10:05:12 +03:00
Alex Hall 30e5789177 Basic fixes for linters: remove unused variables and imports, plus whitespace and other style improvements for PEP8
Edited by Ram.

# Conflicts:
#	pysnooper/pysnooper.py
#	tests/test_pysnooper.py
2019-04-25 21:49:44 +03:00
Ram Rachum 948fa7a312 Argument to overwrite file #5 2019-04-25 21:34:45 +03:00
Ram Rachum 4c0b64fd0b Bundling decorator and six, look ma no dependencies! 2019-04-24 23:16:59 +03:00
Ram Rachum 08aea68d6a Fix bug in not closing file on PyPy 2019-04-24 22:32:08 +03:00
Ram Rachum 3a8c0c35a2 Fail gracefully when can't find code 2019-04-24 22:12:53 +03:00
Ram Rachum fbb2dbdd9d Fix bug in testing infrastructure 2019-04-24 22:08:34 +03:00
Ram Rachum a8c6212e96 Refactor showing return values, repr, tests 2019-04-24 15:28:24 +03:00
Loukas Leontopoulos 9248c58ef4 Show function return value. Resolves #32 2019-04-24 15:27:41 +03:00
Ram Rachum bb6f5133d0 Add test_lambda 2019-04-24 12:46:25 +03:00
Ram Rachum 619c4406cd Refactor test_confusing_decorator_lines 2019-04-24 12:42:42 +03:00
Christian Zietz 8665a46ced Add test-case for multiline decorator and lambda 2019-04-24 12:27:26 +03:00
Christian Zietz 5e74a351f9 Test that actual function name (and not decorator) is reported for 'call' event. 2019-04-24 12:27:26 +03:00
Ram Rachum 1db07e4d66 Add "and collaborators" everywhere 2019-04-24 12:10:46 +03:00
Ram Rachum 15555ed760 Fix #2 2019-04-22 15:10:34 +03:00
Ram Rachum e898561a4f Remove trailing whitespace 2019-04-21 21:39:32 +03:00
Ram Rachum 28a8b24494 Add prefix feature 2019-04-21 21:36:49 +03:00
Ram Rachum 621a4865cc Convert to single Python 2/3 codebase 2019-04-21 21:36:31 +03:00
Ram Rachum 443b442b1d Work feverishly 2019-04-21 21:36:31 +03:00
Ram Rachum cb2d96ddfa Initial commit 2019-04-20 13:45:11 +03:00