Loading autocnet/transformation/tests/test_spatial.py +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ def test_og2oc(): def test_reproject(): with mock.patch('pyproj.transform', return_value=[1,1,1]) as mock_pyproj: with mock.patch('pyproj.Transformer.transform', return_value=[1,1,1]) as mock_pyproj: res = spatial.reproject([1,1,1], 10, 10, 'geocent', 'latlon') mock_pyproj.assert_called_once() assert res == (1,1,1) Loading
autocnet/transformation/tests/test_spatial.py +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ def test_og2oc(): def test_reproject(): with mock.patch('pyproj.transform', return_value=[1,1,1]) as mock_pyproj: with mock.patch('pyproj.Transformer.transform', return_value=[1,1,1]) as mock_pyproj: res = spatial.reproject([1,1,1], 10, 10, 'geocent', 'latlon') mock_pyproj.assert_called_once() assert res == (1,1,1)