slash-step 1.2.0
pip install slash-step==1.2.0
Latest version
Released:
A more granular sub STEP for slash tests
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD 3-Clause License
- Author: Omer Gertel
- Requires: Python >=3.8
-
Provides-Extra:
testing
Classifiers
- Programming Language
Project description
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()
Project details
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD 3-Clause License
- Author: Omer Gertel
- Requires: Python >=3.8
-
Provides-Extra:
testing
Classifiers
- Programming Language
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
Built Distribution
File details
Details for the file slash_step-1.2.0.tar.gz
.
File metadata
- Download URL: slash_step-1.2.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ece39ea20a259b47f2ab4f0341ec6ab659bf913ff80f130fff4e86ae6e0de7f |
|
MD5 | e4995de3fe882b8f118d08e290be893a |
|
BLAKE2b-256 | dc995773ab9964c5bcefe9f51190bd807de8f8497a18b8d7b33fdfcf408932ea |
File details
Details for the file slash_step-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: slash_step-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6726558beda37e613a30905370f4954ed5a917dfe22ab3716f7ae156f00569ee |
|
MD5 | 81c4b04be6d2d57fc687c4c90dd3828d |
|
BLAKE2b-256 | 6d2fbcbc780b13cfa1df0c08256e321e0ed62543d446bf60edbbed1e4077b454 |