Tools for testing processes
Project description
Tools for testing processes.
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
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
process-tests-0.6.2.tar.gz
(5.2 kB
view details)
File details
Details for the file process-tests-0.6.2.tar.gz
.
File metadata
- Download URL: process-tests-0.6.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c3fc05ae043b80872641d8d3ac05b545ca18f9f83460e26df0deab7b675910b |
|
MD5 | d9ee3e0eff10c9d7b54a5071a8afc7d7 |
|
BLAKE2b-256 | 9331233b8170fa431cd2d4af2636797dd5977f57b2fb57aec8175b4c9a9646f4 |