Skip to content

Fix PR 36 CI test failures: align with PR 37 getnc() return value cha…#49

Merged
SBFRF merged 1 commit into
mainfrom
pr36-fix
Feb 2, 2026
Merged

Fix PR 36 CI test failures: align with PR 37 getnc() return value cha…#49
SBFRF merged 1 commit into
mainfrom
pr36-fix

Conversation

@SBFRF

@SBFRF SBFRF commented Feb 2, 2026

Copy link
Copy Markdown
Owner

…nges

  • Update test_getWind_returns_expected_keys mock to return 3 values from getnc()
  • Fix undefined indexRef variable in getWaveHeightValues method
  • Add noqa comments to long URLs in config.py to pass flake8

All tests now pass (137 passed, 1 skipped) and flake8 linting passes.

…nges

- Update test_getWind_returns_expected_keys mock to return 3 values from getnc()
- Fix undefined indexRef variable in getWaveHeightValues method
- Add noqa comments to long URLs in config.py to pass flake8

All tests now pass (137 passed, 1 skipped) and flake8 linting passes.
Copilot AI review requested due to automatic review settings February 2, 2026 03:39
@SBFRF
SBFRF merged commit e4ab8f6 into main Feb 2, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes CI test failures by aligning the test mocks and code with changes from PR 37, where the getnc() function's return signature was updated to consistently return 3 values instead of 2.

Changes:

  • Updated test mock for getWind() to return 3 values from getnc() and corrected an outdated comment
  • Fixed undefined indexRef variable in getWaveSpecModel() method by capturing the third return value from getnc()
  • Added noqa: E501 comments to long URL lines in config.py to satisfy flake8 linting

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/test_getDataFRF.py Updated test mock to return 3 values from getnc() and corrected misleading comment
murgtools/getdata/getDataFRF.py Fixed undefined indexRef variable by capturing getnc()'s third return value, which is needed for absolute index calculation
murgtools/config.py Added flake8 line length exceptions for long URL constants that cannot be reasonably split

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants