Skip to content

Commit

Permalink
Fixing DAGSet ID test
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed May 2, 2024
1 parent 1783f5e commit a079905
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@ def test_id_safety(request):
with pytest.raises(ValueError, match="already"):
v1.id = used_vol_id

safe_vol_id = 9876
safe_vol_id = 101
v1.id = safe_vol_id
assert v1.id == safe_vol_id

v2 = Volume.create(model)
v2 = dagmc.Volume.create(model)
assert v2.id == safe_vol_id + 1

safe_vol_id = 101
safe_vol_id = 9876
v1.id = safe_vol_id
del v2

v3 = Volume.create(model)
v3 = dagmc.Volume.create(model)
assert v3.id == safe_vol_id + 1

s1 = model.surfaces_by_id[1]
Expand Down

0 comments on commit a079905

Please sign in to comment.