Skip to main content

Pytest tool for persistent objects

Project description

# pytest-persistence

Pytest plugin for persistent fixtures.

## Installation

In a Python environment do:

python -m pip install pytest-persistence

## Usage

To store fixtures to file run tests with –store {file_path}:

python -m pytest –store {file_path}

To load fixtures from file run tests with –load {file_path}:

python -m pytest –load {file_path}

BEWARE When this plugin is in use cleanup of all the fixtures is not executed. This is necessary to successfully run tests with –load. However it is important to keep this fact in mind.

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

pytest_persistence-0.1.11.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

pytest_persistence-0.1.11-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest_persistence-0.1.11.tar.gz.

File metadata

  • Download URL: pytest_persistence-0.1.11.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.4

File hashes

Hashes for pytest_persistence-0.1.11.tar.gz
Algorithm Hash digest
SHA256 6ba97c9324e3611f82303a52a3763f7e96f2dc4001e74758cbc50bd0ebe96e23
MD5 5da36de4c538e3279e0942a0f62dd849
BLAKE2b-256 e8667bd27f4c0a22b8ed8ca5bdc481b80dd0e336f84411eb880bf45e77f6afc5

See more details on using hashes here.

File details

Details for the file pytest_persistence-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_persistence-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1726f14fc864619c8df3a3535586aa794be5ea524789cce38a30d3c14cbd0a54
MD5 2e8634a339d28966f2c06cafc8965db0
BLAKE2b-256 cf50a3980aaf8b0f137e7961eb605ca06cc274a7b81a65c7e1499f05b360723e

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