Skip to content

Commit 48b890b

Browse files
committed
Add test for both fwd and inv ITRF transformation case
1 parent 27e83c3 commit 48b890b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/unit/test_itrf_converter.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,22 @@ def test__itrf_transformation_step_failure():
176176
_itrf_transformation_step("ITRF2022", "ITRF93")
177177

178178

179+
def test__itrf_transformation_step_fwd():
180+
"""Test that the forward transform is returned."""
181+
expected = "+step +init=ITRF2014:ITRF2008"
182+
actual_step = _itrf_transformation_step("ITRF2014", "ITRF2008")
183+
184+
assert expected == actual_step
185+
186+
187+
def test__itrf_transformation_step_inv():
188+
"""Test that the forward transform is returned."""
189+
expected = "+step +inv +init=ITRF2014:ITRF2008"
190+
actual_step = _itrf_transformation_step("ITRF2008", "ITRF2014")
191+
192+
assert expected == actual_step
193+
194+
179195
@pytest.mark.parametrize("timezone", ["America/Denver", "UTC"])
180196
def test__datetime_to_decimal_year(timezone, monkeypatch):
181197
monkeypatch.setenv("TZ", timezone)

0 commit comments

Comments
 (0)