Skip to content

Commit f80c131

Browse files
Merge branch 'adding_unit_tests' of https://github.com/OceanParcels/parcels into adding_unit_tests
2 parents e60d24d + f519d1c commit f80c131

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/v4/test_advection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def SubmergeParticle(particle, fieldset, time): # pragma: no cover
133133
@pytest.mark.parametrize("u", [-0.3, np.array(0.2)])
134134
@pytest.mark.parametrize("v", [0.2, np.array(1)])
135135
@pytest.mark.parametrize("w", [None, -0.2, np.array(0.7)])
136-
def test_length1dimensions(u, v, w): # TODO: Refactor this test to be more readable (and isolate test setup)
136+
def test_length1dimensions(u, v, w): # TODO: Refactor this test to be more readable (and isolate test setup)
137137
(lon, xdim) = (np.linspace(-10, 10, 21), 21) if isinstance(u, np.ndarray) else (np.array([0]), 1)
138138
(lat, ydim) = (np.linspace(-15, 15, 31), 31) if isinstance(v, np.ndarray) else (np.array([-4]), 1)
139139
(depth, zdim) = (
@@ -198,7 +198,7 @@ def test_length1dimensions(u, v, w): # TODO: Refactor this test to be more reada
198198
("RK45", 1e-5),
199199
],
200200
)
201-
def test_moving_eddy(method, rtol): # TODO: Refactor this test to be more readable
201+
def test_moving_eddy(method, rtol): # TODO: Refactor this test to be more readable
202202
f, u_0, u_g = 1.0e-4, 0.3, 0.04 # Some constants
203203
start_lon, start_lat = 12000, 12500
204204

0 commit comments

Comments
 (0)