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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

process_tests-2.1.1-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: process-tests-2.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for process-tests-2.1.1.tar.gz
Algorithm Hash digest
SHA256 13e75f9eda697e5ddf809d405bac37d3cac12a44d3c0160676209e05437ed997
MD5 beb16ba4f263cfe133621bfcfafe63f2
BLAKE2b-256 19b855a2b5d91ca53e98c2ded7ef7832ad06f4cb4b1790b5ad51f401ddc6897e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: process_tests-2.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for process_tests-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33506f7b3e18267928742fdcfa32b3fb0021563de7d8abd0f07b1b71d99498f7
MD5 e4356eb1e32a6fd9880dbb65fad03ba7
BLAKE2b-256 8bc2949d1043b93d10f4e964fe912f3a8437675c6edecda19fc462e60ad76d3d

See more details on using hashes here.

Supported by

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