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(lambda: delete_instance(instance1)) # called second
instance2 = spin_instance()
defer.append(lambda: delete_instance(instance2)) # 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.1.0.tar.gz
(2.3 kB
view details)
File details
Details for the file pytest-defer-0.1.0.tar.gz
.
File metadata
- Download URL: pytest-defer-0.1.0.tar.gz
- Upload date:
- Size: 2.3 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 | 331148d37b940c7391e6e48c56542fc8b7e55189be88e963f662ea6657319b5f |
|
MD5 | b85bd66861752d402be604ba19e508ad |
|
BLAKE2b-256 | a28108cc4ea62a0c994a59a0793eda2931ab480e42f277aec990a8b0355c7006 |