-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing SmartList & adding coverage #1992
Conversation
@@ -44,6 +44,7 @@ jobs: | |||
mpiexec -n 2 --use-hwthread-cpus coverage run --rcfile=pyproject.toml -m pytest --cov=armi --cov-config=pyproject.toml --cov-report=lcov --cov-append --ignore=venv armi/tests/test_mpiParameters.py || true | |||
mpiexec -n 2 --use-hwthread-cpus coverage run --rcfile=pyproject.toml -m pytest --cov=armi --cov-config=pyproject.toml --cov-report=lcov --cov-append --ignore=venv armi/tests/test_mpiDirectoryChangers.py || true | |||
coverage combine --rcfile=pyproject.toml --keep -a | |||
coverage report --rcfile=pyproject.toml -i --skip-empty --skip-covered --sort=cover --fail-under=90 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MWAHAHAHHAHAHHAHAHA
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
|
||
def test_issueWarningOnFindingText(self): | ||
with textProcessors.SequentialReader(self._DUMMY_FILE_NAME) as sr: | ||
warningMsg = "Oh no" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…u-rotate-with-pin-dep * zprince/component_flux_up: fix linting release notes Enabling axial expansion with detailed depletion (#1954) Improving error testing (#2004) Addressing reviewer comments for component pin mg fluxes Removing mystery coverage line from tests (#2003) beef up assertions resolve fixme org imports No need to recast strings to strings Finishing up the numProcessors -> nTasks conversion (#2002) Using one-block reactor for component flux test Supporting Python 3.13 (#1996) Removing SmartList & adding coverage (#1992) Update `copyOrWarn` and `getFileSHA1Hash` to account for directories (#1984) Removing broken plot (#1994) Adding unit tests for `CylindricalComponentsDuctHetAverageBlockCollection` (#1991) Allowing creation of partially heterogeneous assemblies for 1D XS model (#1949)
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
.