Skip to content

Commit

Permalink
ensure run_type is tested in builders and doc model
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jun 24, 2021
1 parent 2c2b5a5 commit 3c419b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/emmet-builders/test_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ def test_validator(tasks_store, validation_store):
builder.run()
assert validation_store.count() == tasks_store.count()
assert validation_store.count({"valid": True}) == tasks_store.count()
assert all(list(d["run_type"] == "GGA" for d in validation_store.query()))
1 change: 1 addition & 0 deletions tests/emmet-core/vasp/test_vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ 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

0 comments on commit 3c419b7

Please sign in to comment.