74 Commits

Author SHA1 Message Date
Jonathan Reichelt Gjertsen
d6330dc6a6 Update regexes in tests to work with Python 2.7 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
8d7d21d0d8 Use slightly more specific regexes in the tests 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
b4b425c652 Avoid snooping on the base class 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
d89099aadd Add some more tests for the behaviour with decorators 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
7bb844d518 Move the class-tests to the right place chronologically 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
87f7b5d4b2 Add a test to demonstrate the suboptimal but noncatastrophic behaviour when used with properties 2019-09-08 22:05:21 +03:00
Jonathan Reichelt Gjertsen
5ed81cb848 Add support for wrapping classes (https://github.com/cool-RR/PySnooper/issues/150) 2019-09-08 22:05:21 +03:00
Ram Rachum
297b3cd8d7 Show source path, especially when multiple files 2019-08-10 14:19:01 +03:00
Ram Rachum
814abc34a0 Support single tuple to custom_repr, fix #144 2019-07-30 11:14:35 +03:00
Ram Rachum
c2e44fb583 Improve ensure_tuple 2019-07-17 09:32:19 +03:00
Ram Rachum
78a539a2a5 Massaging some code 2019-06-18 20:34:25 +02:00
pikez
d7d3a80c16 Fix unittest for activating pysnooper 2019-06-18 20:34:25 +02:00
pikez
b4c8c16ed9 remove setup function and description 2019-06-18 20:34:25 +02:00
pikez
f1582fc16c add unittest for activate and setup snoop 2019-06-18 20:34:25 +02:00
Ram Rachum
7687ee1c26 Fix formatting 2019-06-15 15:56:34 +02:00
Ram Rachum
f793796ad3 Removing python_toolbox test dependency 2019-06-15 15:56:34 +02:00
Xiang Gao
25dcc9ff62 sort list of dict keys 2019-05-30 09:02:11 +03:00
Xiang Gao
77e6c54456 remove numpy from test 2019-05-30 09:02:11 +03:00
Xiang Gao
7c7e7eb81a Changes according to review 2019-05-30 09:02:11 +03:00
Xiang Gao
4a32e77b33 Add support for custom repr 2019-05-30 09:02:11 +03:00
Ram Rachum
56f22f8ffe Fix unicode issues and add test, fix #124 2019-05-20 11:42:39 +03:00
Ram Rachum
e21a31162f Formatting 2019-05-20 11:15:57 +03:00
Alexander Bersenev
a73ea14f58 get rid from six module 2019-05-14 17:47:33 +03:00
Nikita Melentev
5698d6c3e2 Support generators 2019-05-11 15:09:37 +03:00
Alexander Bersenev
cb280323e5 Don't always place new variables before the modified ones 2019-05-11 14:25:47 +03:00
Alexander Bersenev
ca90f55d5f Make order test more reliable on pypy 2019-05-11 14:25:47 +03:00
Alexander Bersenev
2a6b2b4299 Variable ordering test 2019-05-11 14:25:47 +03:00
Alexander Bersenev
17d8a41b3b Restore cell vars support in the ordered printing. 2019-05-11 14:25:47 +03:00
Alexander Bersenev
92ff55d2f1 Make predictable order of items if we don't know the proper order.
Also fix tests
2019-05-11 14:25:47 +03:00
Alex Hall
90a1946529 Newest python versions have different repr for exceptions, avoid altogether 2019-05-11 13:34:55 +03:00
Alex Hall
dea100b929 Add test for exception 2019-05-11 13:34:55 +03:00
Alex Hall
f4bae3f1a9 Unify imports 2019-05-11 09:38:09 +03:00
Alex Hall
3b8de8826e Add indentation tests with new assert_sample_output 2019-05-11 09:38:09 +03:00
Alex Hall
af76e55aef Truncate long variables in the middle 2019-05-10 20:48:09 +03:00
Hervé Beraud
fae0ce0c76 Add support for thread identifiers
Display thread infos (identifier and name) on output to help
user to track execution on apps who use threading.
2019-05-10 18:57:50 +03:00
Ram Rachum
0482853d96 Remove reprlib because it's not reliable for simple cases 2019-05-09 09:15:59 +03:00
Alex Hall
7ac2d59624 Improve checks for tracing, add tests for with blocks 2019-05-05 18:22:01 +03:00
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