fremor.tests.conftest module

Shared fixtures for fremor/tests CLI integration tests.

fremor.tests.conftest.cli_mapped_nc_file()

Generate the sea_sfc_salinity NetCDF file from CDL (session-scoped).

fremor.tests.conftest.cli_sos_nc_file()

Generate the sos NetCDF file from CDL (session-scoped).

fremor.tests.conftest.cli_sosv2_nc_file(cli_sos_nc_file)

Create a copy of the sos file as sosV2 (session-scoped).

fremor.tests.conftest.cmip6_exp_config(tmp_path)

Write the CMIP6 experiment config JSON to a temp file and return its path.

fremor.tests.conftest.cmip7_exp_config(tmp_path)

Write the CMIP7 experiment config JSON to a temp file and return its path.

fremor.tests.conftest.ncgen(cdl_path, nc_path)

Run ncgen3 to convert a CDL file into a NetCDF-4 file.

Parameters

cdl_pathstr or Path

Full path to the CDL source file.

nc_pathstr or Path

Full path where the NetCDF-4 file will be written.