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

Refactor test_epiparameter() & assert_epiparameter() #402

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

joshwlambert
Copy link
Member

This PR refactors the test_epiparameter() and assert_epiparameter() functions by pulling out the body of each function and merging in a new .validate_epiparameter() function, which is called by each of the exported functions.

If .validate_epiparameter() finds invalid components of <epiparameter> objects it surfaces messages which test_epiparameter() and assert_epiparameter() use to message or error with, respectively.

The unit tests of test_epiparameter() and assert_epiparameter() have also been simplified.

Unifying the bodies of test_epiparameter() and assert_epiparameter() was suggested in #394.

@joshwlambert joshwlambert merged commit 313aa71 into main Oct 21, 2024
8 checks passed
@joshwlambert joshwlambert deleted the refact_test_assert_ep branch October 21, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant