https://github.com/ionelmc/python-process-tests
Testcase classes and assertions for testing processes.
https://github.com/ionelmc/python-process-tests
Last synced: 7 months ago
JSON representation
Testcase classes and assertions for testing processes.
- Host: GitHub
- URL: https://github.com/ionelmc/python-process-tests
- Owner: ionelmc
- License: bsd-2-clause
- Created: 2013-10-25T15:04:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T13:23:27.000Z (over 1 year ago)
- Last Synced: 2025-02-27T18:36:39.331Z (7 months ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/process-tests
- Size: 76.2 KB
- Stars: 9
- Watchers: 5
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
========
Overview
========.. start-badges
.. list-table::
:stub-columns: 1* - tests
- | |github-actions|
|
* - package
- | |version| |wheel| |supported-versions| |supported-implementations|
| |commits-since|.. |github-actions| image:: https://github.com/ionelmc/python-process-tests/actions/workflows/github-actions.yml/badge.svg
:alt: GitHub Actions Build Status
:target: https://github.com/ionelmc/python-process-tests/actions.. |version| image:: https://img.shields.io/pypi/v/process-tests.svg
:alt: PyPI Package latest release
:target: https://pypi.org/project/process-tests.. |wheel| image:: https://img.shields.io/pypi/wheel/process-tests.svg
:alt: PyPI Wheel
:target: https://pypi.org/project/process-tests.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/process-tests.svg
:alt: Supported versions
:target: https://pypi.org/project/process-tests.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/process-tests.svg
:alt: Supported implementations
:target: https://pypi.org/project/process-tests.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-process-tests/v3.0.0.svg
:alt: Commits since latest release
:target: https://github.com/ionelmc/python-process-tests/compare/v3.0.0...main.. end-badges
Tools for testing processes.
* Free software: BSD 2-Clause License
Usage
=====::
from process_tests import ProcessTestCase
from process_tests import TestProcessclass 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.pyTODO
====* tests
* docsRequirements
============:OS: Any
:Runtime: Python 2.6, 2.7, 3.2, 3.3 or PyPySimilar projects
================* TODO