Skip to content

Commit

Permalink
Updated test to make more sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Nov 30, 2024
1 parent ac7e86c commit 2c1071a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ def test_cell_material_setter(simple_problem):

def test_problem_cells_setter(simple_problem):
problem = copy.deepcopy(simple_problem)
cells = copy.deepcopy(simple_problem.cells)
cells.remove(cells[1])
#TODO test cells clone
cells = simple_problem.cells.clone()
cells.remove(cells[4])
with pytest.raises(TypeError):
problem.cells = 5
with pytest.raises(TypeError):
Expand All @@ -234,7 +235,7 @@ def test_problem_cells_setter(simple_problem):
problem.cells = cells
assert problem.cells.objects == cells.objects
problem.cells = list(cells)
assert problem.cells[2] == cells[2]
assert problem.cells[6] == cells[6]
# test that cell modifiers are still there
problem.cells._importance.format_for_mcnp_input((6, 2, 0))

Expand Down

0 comments on commit 2c1071a

Please sign in to comment.