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-1.1.0.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file process-tests-1.1.0.tar.gz
.
File metadata
- Download URL: process-tests-1.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38cccf8f9867c78aa18edf9ec40ca87ff0994af2d588ebf482504873557489fe |
|
MD5 | e9972248c22ed22a80f5e59d1e5b52e0 |
|
BLAKE2b-256 | 49c136b89861a2b763b579c4624bfb0e6e0aef68aa6a7945ecd1ccf7057ae052 |
Provenance
File details
Details for the file process_tests-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: process_tests-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbb3ece2b486d754f4342e00d8363184dbb7e798d990ed68d61efcd80d1b01a8 |
|
MD5 | 984aea653fdcd99c2e132ff21cc8b490 |
|
BLAKE2b-256 | 99ef75f6c283d26fec161e7bfad6fe4c4c3ef93cd6740b9a4de45912aea64121 |