Skip to content

test: cover from_processor with a stratigraphic column - #297

Open
manduinca wants to merge 1 commit into
Loop3D:masterfrom
manduinca:fix/set-stratigraphic-column-warn
Open

test: cover from_processor with a stratigraphic column#297
manduinca wants to merge 1 commit into
Loop3D:masterfrom
manduinca:fix/set-stratigraphic-column-warn

Conversation

@manduinca

@manduinca manduinca commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Related to #296

GeologicalModel.from_processor had no test coverage: when set_stratigraphic_column raised DeprecationWarning unconditionally (#296) nothing in the suite caught it. The fix for that has since landed through #300, so this PR is reduced to the regression test.

The test builds a small synthetic processor and asserts from_processor completes and populates the stratigraphic column. It passes against current master.

from_processor had no test coverage. The path broke when
set_stratigraphic_column raised DeprecationWarning unconditionally
(Loop3D#296) and nothing caught it. The raise is gone in master since Loop3D#300,
so this regression test passes and guards the path from now on.
@manduinca manduinca changed the title fix: warn instead of raise in set_stratigraphic_column test: cover from_processor with a stratigraphic column Sep 2, 2026
@manduinca
manduinca force-pushed the fix/set-stratigraphic-column-warn branch from 60fccbc to 31774ce Compare September 2, 2026 16:00
@manduinca

Copy link
Copy Markdown
Contributor Author

Rebased on master. The fix landed in the meantime through #300, so I dropped it and kept only the regression test.

It still seems worth having: nothing in the test suite exercises from_processor today, and that is the path that broke in #296. The test passes against current master.

The failures in tests/unit/interpolator/test_2d_p1_p2_support.py are pre-existing on master (7 failed, 7 passed on a clean checkout of 2e2c593), unrelated to this PR.

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.

1 participant