Skip to content
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

Improving error testing #2004

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Improving error testing #2004

merged 2 commits into from
Nov 5, 2024

Conversation

john-science
Copy link
Member

@john-science john-science commented Nov 1, 2024

What is the change?

Improving some of our tests that were using unittest.TestCase.assertRaises() incorrectly.

Why is the change being made?

In #2001 I identify 3 tests in ARMI that were incorrectly using assertRaises(). When I got in there to look at them, I found that all three tests were essentially broken. And I had to slightly re-write those tests.

close #2001


Checklist

  • The release notes have been updated if necessary.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in pyproject.toml.

@john-science john-science added cleanup Code/comment cleanup: Low Priority testing Related to tests labels Nov 1, 2024
Copy link
Member

@opotowsky opotowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey nice!!!

@john-science john-science merged commit dae5b78 into main Nov 5, 2024
21 checks passed
@john-science john-science deleted the cleanup_error_testing branch November 5, 2024 22:48
drewj-tp added a commit that referenced this pull request Nov 7, 2024
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code/comment cleanup: Low Priority testing Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup tests that are testing for error strings
2 participants