https://github.com/aiidateam/aiida-test-cache
A pytest plugin to simplify testing of AiiDA plugins.
https://github.com/aiidateam/aiida-test-cache
aiida pytest testing
Last synced: about 2 months ago
JSON representation
A pytest plugin to simplify testing of AiiDA plugins.
- Host: GitHub
- URL: https://github.com/aiidateam/aiida-test-cache
- Owner: aiidateam
- License: mit
- Created: 2020-02-19T10:30:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T10:39:54.000Z (5 months ago)
- Last Synced: 2025-04-13T04:05:36.459Z (about 2 months ago)
- Topics: aiida, pytest, testing
- Language: Python
- Homepage:
- Size: 326 KB
- Stars: 7
- Watchers: 4
- Forks: 8
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/aiidateam/aiida-test-cache/actions)
[](https://aiida-testing.readthedocs.io/)
[](https://badge.fury.io/py/aiida-test-cache)
[](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/).