Skip to content

Commit

Permalink
Made test more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Nov 25, 2024
1 parent 188e6c6 commit 6c7d5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def test_material_deleter(_, big_material):
(Nucleus(Element(1), 1), True),
(Element(43), False),
("B-10.00c", False),
(Nucleus(Element(5), 10), False),
],
)
def test_material_contains(_, big_material, content, is_in):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nuclide.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def test_element_init(_):
def test_element_str(_):
element = Element(1)
assert str(element) == "hydrogen"
assert repr(element) == "Z=1, symbol=H, name=hydrogen"
assert repr(element) == "Element(1)"

def test_get_by_symbol(_):
element = Element.get_by_symbol("Hg")
Expand Down

0 comments on commit 6c7d5c5

Please sign in to comment.