Skip to content

A pytest plugin to simplify testing of AiiDA plugins.

License

Notifications You must be signed in to change notification settings

aiidateam/aiida-test-cache

Repository files navigation

Build Status Docs status PyPI version GitHub 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.