Skip to main content

A twisted plugin for py.test.

Project description

Authors:

Ralf Schmitt <ralf@systemexit.de>

Version:
1.1
Date:
2012-10-22

pytest-twisted is a plugin for pytest, which allows to test code, which uses the twisted framework. test functions can return Deferred objects and pytest will wait for their completion with this plugin.

Installation

Install the plugin with:

pip install pytest-twisted

Using the plugin

The plugin must be enabled. This can be done in the following ways:

  1. Run py.test with the –twisted command line option

  2. Put the following into conftest.py:

    pytest_plugins = "pytest_twisted"
  3. Put the following into pytest.ini:

    [pytest]
    twisted = 1

That’s all.

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

pytest-twisted-1.1.zip (6.7 kB view details)

Uploaded Source

File details

Details for the file pytest-twisted-1.1.zip.

File metadata

  • Download URL: pytest-twisted-1.1.zip
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-twisted-1.1.zip
Algorithm Hash digest
SHA256 1e2f62c39e6a4f0079efb8a13d6ad1cccaa86200eab0e74b95e6c46453161b96
MD5 61b12e5a7e42f33d18854314bd47e8a1
BLAKE2b-256 d3594accbaf7b7f199d058da5635e0bdbdd126783c84a6d037b063fb1a963057

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