Skip to content

Commit

Permalink
adding removed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nden committed Dec 10, 2024
1 parent 3d3b6c4 commit fb5f70d
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions gwcs/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,54 @@ def sellmeier_zemax():
def gwcs_3d_galactic_spectral():

return examples.gwcs_3d_galactic_spectral()

@pytest.fixture(scope="function")
def gwcs_1d_spectral():
return examples.gwcs_1d_spectral()


@pytest.fixture(scope="function")
def gwcs_spec_cel_time_4d():
return examples.gwcs_spec_cel_time_4d()


@pytest.fixture(
scope="function",
params=[
(2, 1, 0),
(2, 0, 1),
pytest.param((1, 0, 2), marks=pytest.mark.skip(reason="Fails round-trip for -TAB axis 3")),
]
)
def gwcs_cube_with_separable_spectral(request):
axes_order = request.param
return examples.gwcs_cube_with_separable_spectral(axes_order)


@pytest.fixture(
scope="function",
params=[
(2, 0, 1),
(2, 1, 0),
pytest.param((0, 2, 1), marks=pytest.mark.skip(reason="Fails round-trip for -TAB axis 2")),
pytest.param((1, 0, 2), marks=pytest.mark.skip(reason="Fails round-trip for -TAB axis 3")),
]
)
def gwcs_cube_with_separable_time(request):
axes_order = request.param
return examples.gwcs_cube_with_separable_time(axes_order)


@pytest.fixture(scope="function")
def gwcs_7d_complex_mapping():
return examples.gwcs_7d_complex_mapping()


@pytest.fixture
def spher_to_cart():
return geometry.SphericalToCartesian()


@pytest.fixture
def cart_to_spher():
return geometry.CartesianToSpherical()

0 comments on commit fb5f70d

Please sign in to comment.