Closed weaverba137 closed 1 year ago
@geordie666, I think I found the answer: pytest>=7 and pytest-cov>=4 give lower coverage than pytest<7; pytest-cov<4 which is what we have at NERSC. I've pinned to those older versions, and the coverage value now matches the NERSC value.
desitarget/svX/svX_cuts.py
is imported by importlib.import_module
instead of a standard import
statement, & this seems to be incompatible with how recent versions of pytest-cov
counts coverage. Further research will be needed to fix this long-term, but for now pinning the versions works.
I don't actually need to tag this immediately, so go ahead and tag based on your own changes when you're ready.
This PR closes #798 by refreshing the test infrastructure.