aiida-test-cache pytest plugin¶
A pytest plugin to simplify testing of AiiDA workflows. It implements fixtures to cache the execution of codes:
mock_code
: Caches at the level of the code executable. Use this for testing calculation and parser plugins, because input file generation and output parsing are also being tested.archive_cache
: Uses the AiiDA caching feature, in combination with an automatic archive creation/loading. Use this to test high-level workflows.
aiida-test-cache
is available at http://github.com/aiidateam/aiida-test-cache
If you use AiiDA for your research, please cite the following work:
Giovanni Pizzi, Andrea Cepellotti, Riccardo Sabatini, Nicola Marzari, and Boris Kozinsky, AiiDA: automated interactive infrastructure and database for computational science, Comp. Mat. Sci 111, 218-230 (2016); https://doi.org/10.1016/j.commatsci.2015.09.013; http://www.aiida.net.
aiida-test-cache
is released under the MIT license.