Skip to main content

Tools for testing processes

Project description

PYPI Package

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

TODO

  • tests

  • docs

Requirements

OS:

Any

Runtime:

Python 2.6, 2.7, 3.2, 3.3 or PyPy

Similar projects

  • TODO

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.0.1.tar.gz (4.8 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.0.1-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: process-tests-2.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for process-tests-2.0.1.tar.gz
Algorithm Hash digest
SHA256 f43f3540edd333bdc5d8741218e173b1dfdbce5b0a40066d75248911e5340a06
MD5 655d2f0cae42b4aac2fdd7885f3c744c
BLAKE2b-256 436ec4bd9605036e3c883c42e4f9ce79aede9101bd95f09055ae946a60b63b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: process_tests-2.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for process_tests-2.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e09cebbb662c0ab0dc30c96a39dabb9fc958034cd3b468357f0225922779b5a1
MD5 5cacb3fc7b02f25444ca51a40c182d4c
BLAKE2b-256 60c57568fc1974bf62f403624b440a2cf78e54ed91d746f18c2ef99d1064aef6

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