Skip to main content

Overview

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

3.0.0 (2023-11-01)

  • Dropped Python 2 support.

  • Added an optional non-pipe TestProcess mode. You can use file objects for processes that are too verbose for a pipe.

  • Added some tests.

2.1.2 (2021-05-02)

  • 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.

Metadata

Release files for process-tests 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for process-tests 3.0.0
File Size Uploaded
process-tests-3.0.0.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for process-tests 3.0.0
File Interpreter ABI Platform
process_tests-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.8 kB

Release files / process-tests-3.0.0.tar.gz

Download URL process-tests-3.0.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d57dea7161251e91cadb84bf3ecc85275fb121fd478e579f800777b1d424bd
BLAKE2b-256 checksum
How to use checksums
2361f19c3474c8c87ebb13210e83391f156c971281773623f292fcab26b8c5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / process_tests-3.0.0-py3-none-any.whl

Download URL process_tests-3.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
704aa9aad27cf9fdcc50212ae1518f7fed36faef5ddb4e0195ebeeb20306f47d
BLAKE2b-256 checksum
How to use checksums
54c02aa657428cfc22619d7fe7f6a34c7e3eb981ff6ce6e5c070f36db1e20293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

2 release files

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page