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
...
Development
Me (@tebeka) is playing around with uv for this project.
Release files for pytest_defer 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_defer-0.2.1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_defer-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / pytest_defer-0.2.1.tar.gz
| Download URL | pytest_defer-0.2.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
929410399b9cdd67081b8fc930cfe3c883315140417098b7b57a8394cde8c1ce
|
|
BLAKE2b-256 checksum How to use checksums |
5af7bc26befedff3c76fe1c1386139542528050d9b29dc0205e482f94a09b642
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.1
|
Release files / pytest_defer-0.2.1-py3-none-any.whl
| Download URL | pytest_defer-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f34099a20eb96ce8b2f9e13fb958d6faf8babeceb4c5f5e95831dfb09efb0377
|
|
BLAKE2b-256 checksum How to use checksums |
950be3264820559a8e26e27794d87f683ed0772d002be6572f681124880fdd1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.1
|