Skip to content

ENH: Adapt to stricter project .fmu init behavior#333

Merged
GibranAlfa merged 2 commits intoequinor:mainfrom
GibranAlfa:adapt-to-new-init-behavior
Mar 27, 2026
Merged

ENH: Adapt to stricter project .fmu init behavior#333
GibranAlfa merged 2 commits intoequinor:mainfrom
GibranAlfa:adapt-to-new-init-behavior

Conversation

@GibranAlfa
Copy link
Copy Markdown
Collaborator

@GibranAlfa GibranAlfa commented Mar 26, 2026

Resolves #332

  • POST /project/init now catches InvalidFMUProjectPathError and returns HTTP 422 when the target path exists but is not a valid FMU project root.
  • Cleanup the test fixtures to properly setup project .fmu

Checklist

  • Tests added (if not, comment why)
  • Test coverage equal or up from main (run pytest with --cov=src/ --cov-report term-missing)
  • If not squash merging, every commit passes tests
  • Appropriate commit prefix and precise commit message used
  • All debug prints and unnecessary comments removed
  • Docstrings are correct and updated
  • Documentation is updated, if necessary
  • Latest main rebased/merged into branch
  • Added comments on this PR where appropriate to help reviewers
  • Moved issue status on project board
  • Checked the boxes in this checklist ✅

@GibranAlfa GibranAlfa force-pushed the adapt-to-new-init-behavior branch from 588894e to 187b0e7 Compare March 27, 2026 08:01
@GibranAlfa GibranAlfa merged commit 814e27a into equinor:main Mar 27, 2026
7 checks passed
@GibranAlfa GibranAlfa deleted the adapt-to-new-init-behavior branch March 27, 2026 08:04
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.

Adapt to stricter project .fmu init behavior

3 participants