Skip to content

[develop] Fix failing unit test due to renamed variable#583

Merged
MichaelLueken merged 1 commit into
ufs-community:developfrom
mkavulich:bugfix/fix_failing_unit_test
Feb 7, 2023
Merged

[develop] Fix failing unit test due to renamed variable#583
MichaelLueken merged 1 commit into
ufs-community:developfrom
mkavulich:bugfix/fix_failing_unit_test

Conversation

@mkavulich
Copy link
Copy Markdown
Collaborator

DESCRIPTION OF CHANGES:

PR #566 changed the variable "MODEL" to a more descriptive name, but failed to make this change in config.community.yaml. The unit tests for generate_FV3LAM_wflow.py make use of this file as an input config.yaml, so they are now failing due to this incorrect variable name. This wasn't caught because prior to #558 the unit tests were broken for a different reason.

This change simply makes the appropriate rename, which should fix the failing unit test. Also created an f-string that was missed in a setup.py error message.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

TESTS CONDUCTED:

This change only impacts the unit tests or other uses of config.community.yaml, so all tests should pass. Out of an abundance of caution, running fundamental tests on Jet (Hera is down today).

  • jet.intel (pending)
  • fundamental test suite

DEPENDENCIES:

None

DOCUMENTATION:

None

ISSUE:

None

CHECKLIST

  • My code follows the style guidelines in the Contributor's Guide
  • I have performed a self-review of my own code using the Code Reviewer's Guide
  • I have commented my code, particularly in hard-to-understand areas
  • My changes need updates to the documentation. I have made corresponding changes to the documentation
  • My changes do not require updates to the documentation (explain).
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • Any dependent changes have been merged and published

Copy link
Copy Markdown
Collaborator

@MichaelLueken MichaelLueken left a comment

Choose a reason for hiding this comment

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

Thanks for correcting this so fast, @mkavulich! The unit test is now passing, so I'm approving.

@MichaelLueken MichaelLueken merged commit 844f347 into ufs-community:develop Feb 7, 2023
@mkavulich mkavulich deleted the bugfix/fix_failing_unit_test branch April 21, 2026 19:17
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.

3 participants