terrapower / armi

An open-source nuclear reactor analysis automation framework that helps design teams increase efficiency and quality
https://terrapower.github.io/armi/
Apache License 2.0
233 stars 90 forks source link

Removing SmartList & adding coverage #1992

Closed john-science closed 3 weeks ago

john-science commented 3 weeks ago

What is the change?

  1. Added a bunch of code coverage to textProcessors.py.
    • Moved unit tests for textProcessors.py from test_interfaces.py.
    • Removed testProcessors.py::SmartList from the API.
  2. I added --fail-under=90.

Why is the change being made?

Last night, I was trying to add code coverage to textProcessors.py, on general principles.

And I noticed two strange things:

  1. Half the test for textProcessors.py were in test_interface.py for now reason. So I moved those into textProcessors.py.
  2. The class SmartList in textProcessors.py was totally broken. I found multiple bugs in that class and it's usage while trying to write tests for it that prove it has not worked in at least four years. So, it is unused and I removed it.

Notes


Checklist