-
Notifications
You must be signed in to change notification settings - Fork 7
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 tests, adding a common module #138
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## develop #138 +/- ##
========================================
Coverage 87.33% 87.33%
========================================
Files 7 7
Lines 521 521
========================================
Hits 455 455
Misses 66 66 |
I don't have a mac, so I can't debug the unrelated issue highlighted by this PR:
The referenced runtime error location is linked here via here. And the failing test is linked here. |
thanks @mwtoews , I will have a look at that issue and then I think we can put this in |
@mwtoews I have added checks to the MODFLOW 6 autotests to see if the current development version throws the same exception when running the API on macos but it doesn't. Could you try your workflow taking the latest version from the repo? |
A change was needed for the test, as Also, the issue with macos does not apply the the mf6 nightly builds. Only the latest release. |
I borrowed a mac laptop to investigate, and I can recreate the issue only with mf6.5.0_macarm.zip from https://github.com/MODFLOW-USGS/modflow6/releases/tag/6.5.0 . Whereas mf6.5.0_mac.zip (x64_86) runs fine, without issue. And the modflow6-nightly-build repo is fine with both mac platforms, which means the issue is resolved. So I suspect there was an issue with the 6.5.0 release for arm64. |
You are right, the particular ID selected in this case is not an identification number but an integer work array for the linear solver... I think your solution to set it to NROW is safer. |
Btw we are planning to release 6.6.0 any day now, so glad to know that that issue has been resolved. |
For completeness, this is the fix that prevents the nightly build from showing the same behavior as the 6.5.0 release: MODFLOW-USGS/modflow6#1996 |
This PR simplifies a few ambitions of #108 to:
tests/common.py
for common test functions that are not fixtures (these are kept atconftest.py
). Note thattests
is now a module, but it is not included by hatch for installation/packaging.conftest.modflow_lib_path
tocommon.libmf6_path
, based on:LIBMF6
for the direct path to the.so
/.dll
/.dylib
fileMODFLOW_BIN_PATH
to the directory with bothmf6
andlibmf6
(the suffix is determined by platform); this is the default path used by modflowpy/install-modflow-actionlibmf6
is in the same directory asmf6
[tool.pytest.ini_options]
inpyproject.toml
flopy_disu
fixture.