tests: add test for add_analyses
function
#809
Labels
complexity: medium
priority: medium
type: bug
Indicates an unexpected problem or unintended behaviour
I merged PR #808 even though the test coverage decreased by -0.006% since it is within the tolerance of -0.02%. The new uncovered line is:
hepdata/hepdata/ext/opensearch/document_enhancers.py
Lines 116 to 117 in 32b9fb7
The other lines in
add_analyses
are tested indirectly, for example,doi_minter_test.py
imports ins1748602 that includes a HistFactory file. I couldn't work out an easy way of modifying the existing tests to cover the above line. We could wait until a record is finalised that includes a ProSelecta file, then import it withimport_records
to cover the above line, but it would be better to add a dedicated test for theadd_analyses
function that covers all supported analysis types (currently: Rivet, MadAnalysis, HistFactory and NUISANCE).The text was updated successfully, but these errors were encountered: