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

Uploaded Source

File details

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

File metadata

  • Download URL: process-tests-0.4.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for process-tests-0.4.3.tar.gz
Algorithm Hash digest
SHA256 26e0d763edcfd9b5978e37e1a7c6771afaf614c636dac19f0044f2f1082889be
MD5 9f0d1a74eefe0e4b4d9d78640394c34c
BLAKE2b-256 3dc7bcc94da3d15818780ff2ae552c281b4a0aecb0191e5f2f08314a3dad17aa

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