A twisted plugin for py.test.
Project description
- 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:
Run py.test with the –twisted command line option
Put the following into conftest.py:
pytest_plugins = "pytest_twisted"
Put the following into pytest.ini:
[pytest] twisted = 1
That’s all.
Project details
Release history Release notifications | RSS feed
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 hashes)