From 3c419b710ec1bf0edc38a72f830071d098680256 Mon Sep 17 00:00:00 2001 From: Shyam D Date: Wed, 23 Jun 2021 21:13:04 -0700 Subject: [PATCH] ensure run_type is tested in builders and doc model --- tests/emmet-builders/test_vasp.py | 1 + tests/emmet-core/vasp/test_vasp.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/emmet-builders/test_vasp.py b/tests/emmet-builders/test_vasp.py index 3348553f5f..2d2045fb92 100644 --- a/tests/emmet-builders/test_vasp.py +++ b/tests/emmet-builders/test_vasp.py @@ -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())) diff --git a/tests/emmet-core/vasp/test_vasp.py b/tests/emmet-core/vasp/test_vasp.py index 5279214cf3..fe387b784f 100644 --- a/tests/emmet-core/vasp/test_vasp.py +++ b/tests/emmet-core/vasp/test_vasp.py @@ -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