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.
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:
Half the test for textProcessors.py were in test_interface.py for now reason. So I moved those into textProcessors.py.
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
I tested the --fail-under flag in another branch and it worked.
@opotowsky I was able to show that this change does not affect downstream tests (jenkins 249)
What is the change?
textProcessors.py
.textProcessors.py
fromtest_interfaces.py
.testProcessors.py::SmartList
from the API.--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:
textProcessors.py
were intest_interface.py
for now reason. So I moved those intotextProcessors.py
.SmartList
intextProcessors.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
--fail-under
flag in another branch and it worked.Checklist
doc
folder.pyproject.toml
.