Metadata-Version: 2.3
Name: aiida-test-cache
Version: 0.0.1
Summary: A pytest plugin to simplify testing of AiiDA workflows
Keywords: AiiDA,testing,pytest,mock,cache
Author: Dominik Gresch, Leopold Talirz, Jens Bröder, Philipp Rüßmann, AiiDA team
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Framework :: AiiDA
Classifier: Framework :: Pytest
Requires-Dist: aiida-core>=1.0.0,<2.6
Requires-Dist: pytest>=7.0
Requires-Dist: voluptuous~=0.12
Requires-Dist: setuptools
Requires-Dist: aiida-test-cache[tests, pre-commit, docs] ; extra == "dev"
Requires-Dist: sphinx ; extra == "docs"
Requires-Dist: sphinx-rtd-theme ; extra == "docs"
Requires-Dist: pre-commit ; extra == "pre-commit"
Requires-Dist: mypy==1.13 ; extra == "pre-commit"
Requires-Dist: types-setuptools==65.7.0.3 ; extra == "pre-commit"
Requires-Dist: types-PyYAML ; extra == "pre-commit"
Requires-Dist: pgtest~=1.3.1 ; extra == "tests"
Requires-Dist: aiida-diff ; extra == "tests"
Requires-Dist: pytest-datadir ; extra == "tests"
Requires-Dist: pytest-mock ; extra == "tests"
Project-URL: Homepage, https://aiida-testing.readthedocs.io/
Provides-Extra: dev
Provides-Extra: docs
Provides-Extra: pre-commit
Provides-Extra: tests

[![Build Status](https://github.com/aiidateam/aiida-test-cache/actions/workflows/ci.yml/badge.svg)](https://github.com/aiidateam/aiida-test-cache/actions)
[![Docs status](https://readthedocs.org/projects/aiida-testing/badge)](https://aiida-testing.readthedocs.io/)
[![PyPI version](https://badge.fury.io/py/aiida-test-cache.svg)](https://badge.fury.io/py/aiida-test-cache)
[![GitHub license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/aiidateam/aiida-test-cache/blob/main/LICENSE)

# aiida-test-cache

A pytest plugin to simplify testing of AiiDA plugins. This package implements two ways of running an AiiDA calculation in tests:
- `mock_code`: Implements a caching layer at the level of the executable called by an AiiDA calculation. This tests the input generation and output parsing, which is useful when testing calculation and parser plugins.
- `archive_cache`: Implements an automatic archive creation and loading, to enable AiiDA - level caching in tests. This circumvents the input generation / output parsing, making it suitable for testing higher-level workflows. 

For more information, see the [documentation](https://aiida-testing.readthedocs.io/).

