Skip to main content

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

TODO

  • tests

  • docs

Requirements

OS:

Any

Runtime:

Python 2.6, 2.7, 3.2, 3.3 or PyPy

Similar projects

  • TODO

Changelog

2.1.2 (2020-07-23)

  • Fixed another regression caused by the universal_newlines for Windows.

2.1.1 (2020-07-23)

  • Fixed regression caused by the universal_newlines (now the internals don’t decode strings).

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


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-2.1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

process_tests-2.1.2-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file process-tests-2.1.2.tar.gz.

File metadata

  • Download URL: process-tests-2.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for process-tests-2.1.2.tar.gz
Algorithm Hash digest
SHA256 a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba
MD5 bd65932ebc724e53dd6a951bc106b02e
BLAKE2b-256 f1da2d09f51f8dd4c194b61144ad0410b12151411a12fcc5f5e5c798fb72d7e2

See more details on using hashes here.

Provenance

File details

Details for the file process_tests-2.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: process_tests-2.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4

File hashes

Hashes for process_tests-2.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 18161ed0d2962c7b8d6e87cd53bb1b9fff390ad122f6f78e5fda3fdf10f578e0
MD5 6fb3bd5a69ef161f229c9c9bf03861a1
BLAKE2b-256 49e48d56069205a2ce42c7535c0167f4a2e11881724776fd512890a9344f05d8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page