Skip to main content

A twisted plugin for py.test.

Project description

Authors:

Ralf Schmitt <ralf@systemexit.de>

Version:
1.0
Date:
2012-10-21

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.0.zip (5.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pytest-twisted-1.0.zip
Algorithm Hash digest
SHA256 a0375c7a06043a306d2466b1db5e5e687f9d8459e4eeb87943f7dd13e484c626
MD5 2f5b8f7ede7dcbc1919b4512ff608759
BLAKE2b-256 76bdc98244e0afb391454bd832207a4c5da4d3a0b0a44ad6b3b2aef6f9f48ac9

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