Skip to content

Commit

Permalink
chore: add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Oct 31, 2024
1 parent f3afffc commit 6d734c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/py/unit/test_materials_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ def test_get_material_data():
assert type(material) == dict
assert material["name"] == "C, Graphene, HEX (P6/mmm) 2D (Monolayer), 2dm-3993"
assert material["isNonPeriodic"] is False


def test_get_by_name_and_categories():
"""Assert correct information if found about a material."""
material = Materials.get_by_name_and_categories("MoS2", "2D")
assert type(material) == dict
assert material["name"] == "MoS2, Molybdenum Disulfide, HEX (P-6m2) 2D (Monolayer), 2dm-3150"
assert material["isNonPeriodic"] is False

0 comments on commit 6d734c8

Please sign in to comment.