Skip to content

Commit

Permalink
Add low-level py test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Aug 18, 2023
1 parent d506073 commit ebb79ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/tests/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ebb79ac

Please sign in to comment.