From bf6ba43b076688fa22ccc8a7391462377a5f3b41 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Mon, 11 Sep 2023 21:51:38 +0200 Subject: [PATCH] add test on time parsing This is already covered by the assert_equal, but gives a much better error message. --- python/ribasim/tests/test_io.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ribasim/tests/test_io.py b/python/ribasim/tests/test_io.py index f25b098b3..059ebf37b 100644 --- a/python/ribasim/tests/test_io.py +++ b/python/ribasim/tests/test_io.py @@ -48,6 +48,7 @@ def test_basic_transient(basic_transient, tmp_path): assert_equal(model_orig.edge.static, model_loaded.edge.static) forcing = model_loaded.basin.forcing + assert model_orig.basin.forcing.time[0] == forcing.time[0] assert_equal(model_orig.basin.forcing, forcing) assert forcing.shape == (1468, 8)