Skip to main content

TestFlows - Stash

Project description

The `testflows.stash` module is still work in progress and is currently under development. Please use it only for reference.

Why

Allows to stash values or files that are generated during test program execution that could be reused on the next test program run.

Usage

Use stashed context manager to stash a value. If the value identified by name is found inside the stash then the code within the with block is not executed.

from testflows.stash import stashed

def generate_value():
    return "my generated value"

with stashed("value") as stash:
   stash(generate_value())

print(stash.value)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testflows.stash-1.1.220510.1154615.tar.gz (28.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page