Skip to main content

slash-step

Build Status Build Status
Supported Versions Supported Versions
Latest Version 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)

Source distribution for slash-step 1.2.0
File Size Uploaded
slash_step-1.2.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slash-step 1.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page