Skip to content

Standardize Testing#43

Draft
jakechurchi wants to merge 15 commits into
watertap-org:mainfrom
jakechurchi:standardize_testing
Draft

Standardize Testing#43
jakechurchi wants to merge 15 commits into
watertap-org:mainfrom
jakechurchi:standardize_testing

Conversation

@jakechurchi

@jakechurchi jakechurchi commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

This PR will move all tests that area comparisons to data into "test_day" files. component test files will only check the model runs and solves as expected.

  • Update all component file tests
  • Ensure consistiency of application of pytest approx
  • Add test for membrane perm solver.
  • Pull in updated pump model
  • Add tests for detailed pump model to the test_day_WRD.
  • Allow for wrd_treatment_train to have different number of PRO trains by taking qin as an input Treatment System should adapt to different flowrate #41

@jakechurchi jakechurchi mentioned this pull request Feb 2, 2026
10 tasks

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maybe just delete this file so there aren't any conflicts with the one created in PR #42

raise ValueError("dose must be provided to set_chem_addition_op_conditions")

else:
dose = dose * pyunits.mg / pyunits.L

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This allows the dose to be provided in main() without causing a units error

units: kg/m**3
feed_conductivity:
value: 1055
value: 1055 # Check this value!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Looking at raw data, I think it's probably like 1020... Not sure if we should change it at this point.

)


# Could add test for passing different costing units. Right now, only USD_2021 / gallon is supported.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

See comment.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The pytest approx should be on the expected values due to milestone wording.
So rel = 0.15 --> approx on expected value
rel = 1e3 --> approx on the model output value

@jakechurchi jakechurchi mentioned this pull request Apr 16, 2026
5 tasks
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