Skip to content

ionelmc/python-process-tests

Repository files navigation

Overview

tests
GitHub Actions Build Status
package
PyPI Package latest release PyPI Wheel Supported versions Supported implementations
Commits since latest release

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

TODO

  • tests
  • docs

Requirements

OS

Any

Runtime

Python 2.6, 2.7, 3.2, 3.3 or PyPy

Similar projects

  • TODO

About

Testcase classes and assertions for testing processes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages