From ebb79ac8c594e02d8ff1239e18e2d43c41057f74 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Fri, 18 Aug 2023 14:24:43 +0100 Subject: [PATCH] Add low-level py test --- python/tests/test_lowlevel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/tests/test_lowlevel.py b/python/tests/test_lowlevel.py index c33f159deb..5e5c5b2272 100644 --- a/python/tests/test_lowlevel.py +++ b/python/tests/test_lowlevel.py @@ -1496,6 +1496,13 @@ def test_time_units(self): ts.load_tables(tables) assert ts.get_time_units() == value + def test_extend_edges_bad_args(self): + ts1 = self.get_example_tree_sequence(10) + with pytest.raises(TypeError): + ts1.extend_edges() + with pytest.raises(TypeError, match="as an int"): + ts1.extend_edges("sdf") + def test_kc_distance_errors(self): ts1 = self.get_example_tree_sequence(10) with pytest.raises(TypeError):