Skip to content

Commit

Permalink
fix test_cell_to_vertex; helps coverage by removing untouched branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Sep 27, 2024
1 parent 2d79be0 commit 35d7807
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_h3.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,9 @@ def test_cell_to_vertex():
assert h3.cell_to_vertex('814c3ffffffffff', 2) == '2214c3ffffffffff'
assert h3.cell_to_vertex('814c3ffffffffff', 3) == '2314c3ffffffffff'
assert h3.cell_to_vertex('814c3ffffffffff', 4) == '2414c3ffffffffff'
try:

with pytest.raises(h3.H3DomainError):
h3.cell_to_vertex('814c3ffffffffff', 5)
except h3._cy.error_system.H3DomainError:
pass
else:
assert False

# hexagon
assert h3.cell_to_vertex('814d7ffffffffff', 0) == '2014d7ffffffffff'
Expand Down

0 comments on commit 35d7807

Please sign in to comment.