28 Commits

Author SHA1 Message Date
Lumir Balhar
1c94b1af52 Make tests compatible with Python 3.10 2021-05-19 11:21:58 +03:00
Ram Rachum
473bb37a76 Add testing for exceptions 2020-05-05 14:37:01 +03:00
Ram Rachum
43ed249e8c Massaging some code 2020-04-21 14:50:39 +03:00
iory
612e6ebed7 Add elapsed_time check for test 2020-04-21 14:50:39 +03:00
iory
32183e0489 Add BasePrintEntry and ElapsedPrintEntry 2020-04-21 14:50:39 +03:00
Itamar.Raviv
0c5834196a Add normalize flag to remove machine-specific data
This allows for diffing between multiple PySnooper outputs.
2019-11-19 19:07:02 +02:00
Ram Rachum
e2aa42bd6d Tests: Better time regex and placeholder 2019-09-14 11:29:26 +03:00
Ram Rachum
297b3cd8d7 Show source path, especially when multiple files 2019-08-10 14:19:01 +03: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
Ram Rachum
56f22f8ffe Fix unicode issues and add test, fix #124 2019-05-20 11:42:39 +03:00
Alexander Bersenev
a73ea14f58 get rid from six module 2019-05-14 17:47:33 +03:00
Alex Hall
3b8de8826e Add indentation tests with new assert_sample_output 2019-05-11 09:38: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
28ede280fc Move __repr__ to base class 2019-05-03 18:47:23 +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
2708376bdf Fully readable failure from assert_output 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
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
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
1db07e4d66 Add "and collaborators" everywhere 2019-04-24 12:10:46 +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