Skip to content

Commit

Permalink
Fix entry test
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Mar 29, 2024
1 parent 971d1ec commit b32433c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_mprester.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,12 @@ def test_get_entries(self, mpr):
prim = mpr.get_entry_by_material_id(
"mp-22526", inc_structure=True, conventional_unit_cell=False
)[0]
assert pytest.approx(prim.energy_per_atom) == entry.energy_per_atom

s = prim.structure
assert pytest.approx(s.lattice.a) == s.lattice.b
assert pytest.approx(s.lattice.a) != s.lattice.c
assert pytest.approx(s.lattice.alpha) == s.lattice.beta
assert pytest.approx(s.lattice.alpha) != s.lattice.gamma
assert pytest.approx(s.lattice.a, abs=1e-3) == s.lattice.c
assert pytest.approx(s.lattice.alpha, abs=1e-3) == s.lattice.beta
assert pytest.approx(s.lattice.alpha, abs=1e-3) == s.lattice.gamma

# Additional criteria
entry = mpr.get_entries(
Expand Down

0 comments on commit b32433c

Please sign in to comment.