Tools for testing processes.
Project description
Tools for testing processes.
Free software: BSD 2-Clause License
Usage
from process_tests import ProcessTestCase from process_tests import TestProcess class MyTestCase(ProcessTestCase): def test_simple(self): with TestProcess('mydaemon', 'arg1', 'arg2') as proc: with self.dump_on_error(proc.read): self.wait_for_strings(proc.read, 10, # wait 10 seconds for process to output lines with these strings 'Started', 'Working', 'Done', )
Features
TODO
Examples
https://github.com/ionelmc/python-redis-lock/blob/master/tests/test_redis_lock.py
https://github.com/ionelmc/python-manhole/blob/master/tests/test_manhole.py
https://github.com/ionelmc/python-stampede/blob/master/tests/test_stampede.py
https://github.com/ionelmc/python-remote-pdb/blob/master/tests/test_remote_pdb.py
TODO
tests
docs
Requirements
- OS:
Any
- Runtime:
Python 2.6, 2.7, 3.2, 3.3 or PyPy
Similar projects
TODO
Changelog
2.1.0 (2020-07-23)
Applied the cookiecutter-pylibrary templates.
TestProcess will use universal_newlines by default for the contained subprocess.Popen to make sure line buffering is actually used. This also fixes warnings on Python 3.
2.x (???)
Lots of wild stuff.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for process_tests-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2c45b9f5aab88d4e58fad1759b2b54b2c1895ec8bc85d0e793a43c2af99633 |
|
MD5 | 8cc513891b0c935970de8301872d64a9 |
|
BLAKE2b-256 | 2800045b8b1a872a2254f23223d47abe550b40fff7b5d123e1c4a42f223db905 |