Skip to content

Fix pytest clean run (Issue #141)#147

Closed
manavgupta26 wants to merge 1 commit into52North:mainfrom
manavgupta26:fix/issue-141-pytest-clean-run
Closed

Fix pytest clean run (Issue #141)#147
manavgupta26 wants to merge 1 commit into52North:mainfrom
manavgupta26:fix/issue-141-pytest-clean-run

Conversation

@manavgupta26
Copy link

This PR resolves Issue #141 by stabilizing pytest execution on a clean Python 3.11 environment.

Changes:

Updated tests to match current RoutePostprocessing constructor signature (removed outdated positional boat_speed argument).

Improved robustness of calculate_timsestamp() to correctly handle both scalar and vector astropy.units.Quantity inputs for speed.

Restored matplotlib rcParams in test_wind_coeff to prevent global state leakage.

Configured pytest.ini to exclude manual tests by default (-m "not manual"), ensuring clean CI runs.

After these changes, pytest runs successfully on a clean environment without manual tests.

This improves test reliability and aligns the test framework with the intended separation of unit/integration and monitoring tests.

…lision, restore matplotlib rcParams in test_wind_coeff, handle scalar Quantity in calculate_timsestamp, and exclude manual tests by default
@MartinPontius
Copy link
Member

Closing because this PR is more or less an exact copy of #142.

@manavgupta26
Copy link
Author

But the issue 141 is opened with these issue?

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