aiidateam / aiida-testing

A pytest plugin to simplify testing of AiiDA plugins.
MIT License
5 stars 6 forks source link

Add hook for input canonicalization #6

Open greschd opened 4 years ago

greschd commented 4 years ago

First, we should collect cases where the current method fails, to get a better view of the requirements.

greschd commented 4 years ago

One way of implementing canonicalization would be taking a mapping of (possibly globbed) filenames to functions which canonicalize the file content, and apply this when reading the file content (in the hashing function).

Common canonicalization functions (e.g. strip certain lines) could be provided.