Skip tests for excluded parsers
The developer docs suggest excluding slow parsers, e.g. parsers/nexus
for local development. This will fail the corresponding tests. Those tests should be skipped instead.
This gets complicated by mixed tests, e.g. tests/parsing/test_parsing.py::test_match[parsers4-126]
where there is a hard-coded target (correct_num_output_files = 126
) of recognized mainfiles.
Example fails/errors when parser/nexus
is excluded:
FAILED tests/parsing/test_parsing.py::test_parser[parsers/nexus-tests/data/parsers/nexus/201805_WSe2_arpes.nxs] - KeyError: 'parsers/nexus'
FAILED tests/parsing/test_parsing.py::test_parser[parsers/nexus-tests/data/parsers/nexus/SiO2onSi.ellips.nxs] - KeyError: 'parsers/nexus'
FAILED tests/parsing/test_parsing.py::test_match[parsers4-126] - AssertionError: parsers/abinit: abinit/Fe.out, parsers/aflow: aflow/Ag1Co1O...
ERROR tests/normalizing/test_method.py::test_basis_set[parsers/nexus-tests/data/parsers/nexus/201805_WSe2_arpes.nxs] - KeyError: 'parsers/ne...
ERROR tests/normalizing/test_method.py::test_basis_set[parsers/nexus-tests/data/parsers/nexus/SiO2onSi.ellips.nxs] - KeyError: 'parsers/nexus'
ERROR tests/normalizing/test_system.py::test_normalizer[parsers/nexus-tests/data/parsers/nexus/201805_WSe2_arpes.nxs] - KeyError: 'parsers/n...
ERROR tests/normalizing/test_system.py::test_normalizer[parsers/nexus-tests/data/parsers/nexus/SiO2onSi.ellips.nxs] - KeyError: 'parsers/nexus'
Edited by Sascha Klawohn