Pytest fixtures for REANA.
Project description
pytest-REANA
About
pytest-REANA is a component of the REANA reusable and reproducible research data analysis platform. It provides pytest fixtures and test utilities.
Deprecated. Starting with this release, the fixtures and helpers previously shipped here live in the libraries that own them:
- REANA-Commons-coupled and pure fixtures, plus
make_mock_api_client, are exported fromreana_commons.testingand auto-loaded viareana-commons[tests].- Database-coupled fixtures are exported from
reana_db.testingand auto-loaded viareana-db[tests].Existing imports from
pytest_reana.fixturesandpytest_reana.test_utilscontinue to work but emit aDeprecationWarning. New projects should depend onreana-commons[tests]and/orreana-db[tests]instead ofpytest-reana. The package will be archived once the deprecation cycle ends.
Features
- pytest fixtures (now provided by
reana-commons[tests]andreana-db[tests]) - mocking OpenAPI client with request format validation
- mocking Advanced Message Queuing Protocol consumers and producers
- mocking Celery tasks
- mocking file system workspace access
- mocking database access
Usage
The detailed information on how to install and use REANA can be found in docs.reana.io.
Useful links
- REANA project home page
- REANA user documentation
- REANA user support forum
- pytest-REANA releases
- pytest-REANA developer documentation
- pytest-REANA known issues
- pytest-REANA source code
Changelog
0.9.2 (2023-11-30)
- Changes CI to use the stable release of Python 3.12.
0.9.1 (2023-09-26)
- Adds support for Python 3.12.
- Changes
apispecdependency version in order to be compatible withPyYAMLv6. - Fixes container image fixtures to be Podman-compatible.
- Fixes Kombu documentation linking.
0.9.0 (2022-12-13)
- Adds fixture providing example of user secrets needed for Kerberos tests.
- Adds support for Python 3.11.
- Fixes location of Celery docs for ReadTheDocs pages.
- Removes hard-dependency on
blackcode formatter version.
0.8.1 (2022-01-05)
- Adds support for Python 3.10.
0.8.0 (2021-11-22)
- Adds nested Yadage workflow specification fixture.
- Adds empty workflow workspaces for sample workflows by default.
- Adds internal representation of a scatter-gather Snakemake workflow fixture.
- Changes
tmp_shared_volume_pathfixture to be configurable through environment variable. - Changes fixtures to run with the full workspace path stored in the database.
- Removes support for Python 2.
0.7.2 (2021-07-02)
- Changes internal dependencies to remove click.
0.7.1 (2021-03-17)
- Adds support for Python 3.9.
- Fixes minor code warnings.
- Fixes installation by upgrading REANA-DB version.
0.7.0 (2020-10-20)
- Adds new
__reanadatabase schema fordbfixture. - Fixes a problem related to duplicated database session.
- Changes code formatting to respect
blackcoding style. - Changes documentation to single-page layout.
0.6.0 (2019-12-19)
- Adds fixtures for secrets store.
- Centralises test requirements.
- Adds Python 3.8 support.
0.5.0 (2019-04-16)
- Makes workspace path configurable for the
sample_workflow_workspacefixture through thepathparameter. - Adds
sample_serial_workflow_in_dbfixture. - Exposes previously hidden
sample_yadage_workflow_in_dbfixture. - Adds missing database session close in
sessionfixture. - Adds helpers to represent starting and requeueing job conditions,
sample_condition_for_starting_queued_workflowsandsample_condition_for_requeueing_workflows.
0.4.1 (2018-11-06)
- Adds directory including sample workspace data.
0.4.0 (2018-11-06)
- Initial public release.
Project details
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
File details
Details for the file pytest_reana-0.95.0a10.tar.gz.
File metadata
- Download URL: pytest_reana-0.95.0a10.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cf9ca8e33019ca4c28a1c289bd27cd00dd80b3d3abfea9ce65b40d21cfa947c
|
|
| MD5 |
0c441f0f17d7547e8ac2ae0e8a3b1cc1
|
|
| BLAKE2b-256 |
86943066660bced7b24fd897dc4ce187adf06d4ed4c756308c54fb111a745375
|