Skip to content

Commit

Permalink
test validating LDAU params.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jun 29, 2021
1 parent fbf74ba commit 878a91f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/emmet-core/vasp/test_vasp.py
Expand Up @@ -73,3 +73,15 @@ def task_ldau(test_dir):
def test_ldau(task_ldau):
assert task_ldau.run_type == RunType.GGA_U
assert ValidationDoc.from_task_doc(task_ldau).valid is False


def test_ldau_validation(test_dir):
with open(test_dir / "old_aflow_ggau_task.json") as f:
data = json.load(f)

task = TaskDocument(**data)
assert task.run_type == "GGA+U"

valid = ValidationDoc.from_task_doc(task)

assert valid.valid

0 comments on commit 878a91f

Please sign in to comment.