FAIRmat-NFDI / nomad-analysis

This repo contains the standard NOMAD plugin for analysis.
https://fairmat-nfdi.github.io/nomad-analysis/
Apache License 2.0
1 stars 0 forks source link

Add pytest fixture to extract logs of normalize for testing #7

Closed ka-sarthak closed 4 months ago

ka-sarthak commented 4 months ago

Currently, all the errors within normalize methods are handled by the struct logger. Hence, pytest for normalize methods will always pass.

One workaround could be to add a pytest fixture that goes through these logs and finds the logs with error related keywords.