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.210901.1113505.tar.gz (28.2 kB view details)

Uploaded Source

File details

Details for the file testflows.stash-1.1.210901.1113505.tar.gz.

File metadata

  • Download URL: testflows.stash-1.1.210901.1113505.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.10

File hashes

Hashes for testflows.stash-1.1.210901.1113505.tar.gz
Algorithm Hash digest
SHA256 f5eaa3b8e9ff65a80b6d744af1f58c10369ed0c5281e72ff8038526eebcde86d
MD5 e3fe66cd463493569ecb1acc317bab20
BLAKE2b-256 86a72600779bf627d11ae3afe6520547e7408fd7b10c7426b6a4c2e8e0c8f5dc

See more details on using hashes here.

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