No project description provided
Project description
pytest_defer - A "defer" fixture for pytest
def test_example(defer):
# All functions appended to defer will execute at test end in reverse order
instance1 = spin_instance()
defer.append(delete_instance, instance1) # called second
instance2 = spin_instance()
defer.append(delete_instance, instance2, timeout=30) # called first
# Test code using instance1 & instance2
...
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-defer-0.2.0.tar.gz
(2.4 kB
view details)
File details
Details for the file pytest-defer-0.2.0.tar.gz
.
File metadata
- Download URL: pytest-defer-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65507e1616a57fc1e0f9c5773518bcbebc9fad61365f0f83b3700c3e5adaf2f4 |
|
MD5 | ce4a0f5b7ceddbbe7bd5cbece2c40d24 |
|
BLAKE2b-256 | 20b9ec4f74aa2e2fe3ab1409bba0a171d9ae2a53969df179280f058c8ff2b7c6 |