Skip to content

Commit 9591dfb

Browse files
committed
Test DR compatibility with all tested schemas
1 parent 9a6cbd3 commit 9591dfb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/integration/test_segy_import_export_masked.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,32 @@ def export_masked_path(tmp_path_factory: pytest.TempPathFactory) -> Path:
289289
return tmp_path_factory.getbasetemp() / "export_masked"
290290

291291

292+
@pytest.fixture
293+
def raw_headers_env(request: pytest.FixtureRequest) -> None:
294+
"""Fixture to set/unset MDIO__DO_RAW_HEADERS environment variable."""
295+
env_value = request.param
296+
if env_value is not None:
297+
os.environ["MDIO__DO_RAW_HEADERS"] = env_value
298+
else:
299+
os.environ.pop("MDIO__DO_RAW_HEADERS", None)
300+
301+
yield
302+
303+
# Cleanup after test
304+
os.environ.pop("MDIO__DO_RAW_HEADERS", None)
305+
306+
292307
@pytest.mark.parametrize(
293308
"test_conf",
294309
[STACK_2D_CONF, STACK_3D_CONF, GATHER_2D_CONF, GATHER_3D_CONF, STREAMER_2D_CONF, STREAMER_3D_CONF, COCA_3D_CONF],
295310
ids=["2d_stack", "3d_stack", "2d_gather", "3d_gather", "2d_streamer", "3d_streamer", "3d_coca"],
296311
)
312+
@pytest.mark.parametrize(
313+
"raw_headers_env",
314+
["1", None],
315+
ids=["with_raw_headers", "without_raw_headers"],
316+
indirect=True,
317+
)
297318
class TestNdImportExport:
298319
"""Test import/export of n-D SEG-Ys to MDIO, with and without selection mask."""
299320

0 commit comments

Comments
 (0)