Metadata-Version: 2.1
Name: aiida-testing-dev
Version: 0.1.0.dev1
Summary: A pytest plugin for testing AiiDA plugins.
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: Topic :: Scientific/Engineering :: Physics
Classifier: Framework :: AiiDA
Classifier: Framework :: Pytest
Requires-Dist: aiida-core>=1.0.0,<3.0.0
Requires-Dist: pytest>=3.6
Requires-Dist: voluptuous~=0.12
Requires-Dist: sphinx ; extra == "dev"
Requires-Dist: sphinx-rtd-theme ; extra == "dev"
Requires-Dist: pgtest~=1.3.1 ; extra == "dev"
Requires-Dist: aiida-diff ; extra == "dev"
Requires-Dist: pytest-datadir ; extra == "dev"
Requires-Dist: pre-commit ; extra == "dev"
Requires-Dist: pylint~=2.12.2 ; extra == "dev"
Requires-Dist: mypy==0.930 ; extra == "dev"
Requires-Dist: sphinx ; extra == "docs"
Requires-Dist: sphinx-rtd-theme ; extra == "docs"
Requires-Dist: pre-commit ; extra == "pre_commit"
Requires-Dist: pylint~=2.12.2 ; extra == "pre_commit"
Requires-Dist: mypy==0.930 ; extra == "pre_commit"
Requires-Dist: types-PyYAML ; extra == "pre_commit"
Requires-Dist: pgtest~=1.3.1 ; extra == "testing"
Requires-Dist: aiida-diff ; extra == "testing"
Requires-Dist: pytest-datadir ; extra == "testing"
Project-URL: Homepage, https://aiida-testing.readthedocs.io/
Provides-Extra: dev
Provides-Extra: docs
Provides-Extra: pre_commit
Provides-Extra: testing

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

# aiida-testing

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.
- `export_cache`: Implements an automatic export / import of the AiiDA database, 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](http://aiida-testing.readthedocs.io/).

