slash-step
| Build Status | |
| Supported Versions | |
| Latest Version |
Create a more granular sub STEP for Slash tests.
Some scenarios can be long and complex, but you still want to have them as a single logical test. Steps allow to document subsections of a test, and also provide some handy hooks to perform actions inside a test (such as validations).
To continue the microwave example from Slash's docs:
from slash import g
from slash_step import STEP, hooks
@hooks.step_end.register
def measure_temperature():
if g.microwave.temperature > 180:
logger.warn("Microwave is over heating!")
def test_cook_chicken():
with STEP("Defrost chicken"):
# ...
with STEP("Cook"):
# ...
with STEP("Eat"):
# Yum...
assert g.chicken.is_cooked()
Release files for slash-step 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slash_step-1.2.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slash_step-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / slash_step-1.2.0.tar.gz
| Download URL | slash_step-1.2.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ece39ea20a259b47f2ab4f0341ec6ab659bf913ff80f130fff4e86ae6e0de7f
|
|
BLAKE2b-256 checksum How to use checksums |
dc995773ab9964c5bcefe9f51190bd807de8f8497a18b8d7b33fdfcf408932ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / slash_step-1.2.0-py3-none-any.whl
| Download URL | slash_step-1.2.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6726558beda37e613a30905370f4954ed5a917dfe22ab3716f7ae156f00569ee
|
|
BLAKE2b-256 checksum How to use checksums |
6d2fbcbc780b13cfa1df0c08256e321e0ed62543d446bf60edbbed1e4077b454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|