Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
update test (calrify)
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Jan 19, 2024
1 parent e3a3c47 commit ee249de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_znframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ def test_to_json(ammonia):


def test_water_with_calc(waterWithCalc):
assert "forces" in waterWithCalc.calc.results
assert "stress" in waterWithCalc.calc.results
assert "energy" in waterWithCalc.calc.results

assert "forces" not in waterWithCalc.info
assert "stress" not in waterWithCalc.arrays
assert "energy" not in waterWithCalc.arrays

assert "forces" not in waterWithCalc.arrays
assert "stress" not in waterWithCalc.info
assert "energy" not in waterWithCalc.info

frame = Frame.from_atoms(waterWithCalc)
intersection = set(frame.info) & set(frame.arrays)
if intersection:
Expand Down

0 comments on commit ee249de

Please sign in to comment.