Skip to content

Commit

Permalink
Merge pull request #213 from devendragovil/rpv1
Browse files Browse the repository at this point in the history
Fixing Bugs in Report View and Adding Test Cases
  • Loading branch information
mhajij committed Aug 10, 2023
2 parents ae51c7f + 44424bf commit 011d6b9
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 46 deletions.
7 changes: 5 additions & 2 deletions test/classes/test_cell_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ def test_size(self):
assert CX.size((5, 6, 7, 8), node_set=[6, 7, 8]) == 3
assert CX.size(c, node_set=[1, 2, 3]) == 3
with pytest.raises(KeyError):
CX.size((1, 2, 3, 4, 5, 5, 6))
CX.size((1, 2, 3, 4, 5, 6))

def test_insert_cell(self):
"""Test inserting a cell into the cell complex."""
Expand Down Expand Up @@ -1309,7 +1309,10 @@ def test_get_cell_data(self):
with pytest.raises(KeyError):
cx.get_cell_data("A", 0, "invalid_attribute")

with pytest.raises(KeyError):
with pytest.raises(ValueError):
cx.get_cell_data(["C"], 2, "invalid_attribute")

with pytest.raises(TypeError):
cx.get_cell_data("C", 2, "invalid_attribute")

with pytest.raises(KeyError):
Expand Down
Loading

0 comments on commit 011d6b9

Please sign in to comment.