Skip to content

Commit

Permalink
legacy fix for materialsproject#3681
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Mar 17, 2024
1 parent 003f77a commit ede3fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/apps/borg/test_queen.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import unittest

from pytest import approx

from pymatgen.apps.borg.hive import VaspToComputedEntryDrone
from pymatgen.apps.borg.queen import BorgQueen
from pymatgen.util.testing import TEST_FILES_DIR
Expand All @@ -20,7 +22,7 @@ def test_get_data(self):
queen = BorgQueen(drone, TEST_DIR, 1)
data = queen.get_data()
assert len(data) == 1
assert data[0].energy == 0.5559329
assert data[0].energy == approx(0.5559329, 1e-4)

def test_load_data(self):
drone = VaspToComputedEntryDrone()
Expand Down

0 comments on commit ede3fd6

Please sign in to comment.