Commit Graph

11 Commits

Author SHA1 Message Date
Tim Savannah
af7d6e8a39 Allow instantiation of FunctionTimedOut with empty arguments (to support some patterns in unit testing / mocking). Will replace function name with "Unknown Function" if not provided, and timedOutAfter will be "Unknown" or a float of how long until timeout occurred. 2019-08-19 17:28:33 -04:00
Tim Savannah
cf8a9545bc Update to GoodTests runTests.py version 3.0.5 from 2.1.1 2019-08-19 17:16:48 -04:00
Tim Savannah
176ef7b9d9 Increase test timing and thresholds so it works on slower computers as well. 2019-08-19 17:14:48 -04:00
Tim Savannah
f759dbfeec Add missing test_StoppableThread unit test, may need some minor cleanups and tweaking, but passes. 2019-08-19 16:36:45 -04:00
Tim Savannah
82493fe61d Fix missing newline in unit test TestUtils docstring 2019-08-19 16:36:19 -04:00
Tim Savannah
00685ec546 Issue #2 (Resolve) - Ensure we do not lose function information when using the func_set_timeout wrapper.
This includes things like like name, docstring, etc) when using the func_set_timeout wrapper.

This resolves using functools.wrap standard library function.

Includes unit test (failing before this commit, passing after)

Thanks to belongwqz for noting the issue and suggesting functools.wrap as resolution.
2017-08-10 18:48:50 -04:00
Tim Savannah
8af967169d Make python2 work as well as python3 2017-05-20 21:23:37 -04:00
Tim Savannah
9d3eec0475 Add README for tests dir, and add tests to MANIFEST.in 2017-05-20 17:10:16 -04:00
Tim Savannah
ad944d3c2c Add tests 2017-05-20 17:06:51 -04:00
Tim Savannah
0ccca87e2c Some tests 2017-05-20 16:22:14 -04:00
Tim Savannah
b1a05fe92f Add GoodTests.py suite, some utils which will be used, and a test for the test. How meta! 2017-05-20 02:22:24 -04:00