forked from goodboy/tractor
1
0
Fork 0
tractor/tests
Tyler Goodlet c6f3ab5ae2 Initial examples testing attempt
A per #98 we need tests for examples from the docs as they would be run
by a user copy and pasting the code. This adds a small system for loading
examples from an "examples/" directory and executing them in
a subprocess while checking the output. We can use this to also verify
end-to-end expected logging output on std streams (ex. logging on
stderr).

To expand this further we can parameterize the test list using the
contents of the examples directory instead of hardcoding the script
names as I've done here initially.

Also, fix up the current readme examples to have the required/proper `if
__name__ == '__main__'` script guard.
2020-02-07 19:36:52 -05:00
..
conftest.py Force `mp` backend if option is blank? 2020-01-26 23:16:43 -05:00
test_cancellation.py Forkserver just can't seem to cut it... 2020-01-26 23:17:06 -05:00
test_discovery.py Run first example test under both start methods 2019-10-30 00:31:28 -04:00
test_docs_examples.py Initial examples testing attempt 2020-02-07 19:36:52 -05:00
test_local.py Verify subs topics at each step 2019-01-23 22:35:04 -05:00
test_multi_program.py Check for proper SIGINT return code 2019-10-15 23:22:48 -04:00
test_pubsub.py Add back line that breaks with async gens 2019-02-15 22:10:55 -05:00
test_rpc.py Allow choosing the spawn backend per test session 2020-01-26 21:36:08 -05:00
test_spawning.py Add subactor loglevel propagation test 2019-03-23 23:27:32 -04:00
test_streaming.py Slight slowdown on windows / py3.8? 2019-10-16 11:02:18 -04:00