Commit b5d09a32 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Checkpoint.

parent 0135d30c
......@@ -109,3 +109,12 @@ def two_d() -> LocalBackend:
backend = parse_file((parser_name, filepath))
backend = run_normalize(backend)
return backend
@pytest.fixture(scope='session')
def surface() -> LocalBackend:
parser_name = "parsers/fhi-aims"
filepath = "tests/data/normalizers/encyclopedia/fhiaims_2d_singlepoint/aims.out"
backend = parse_file((parser_name, filepath))
backend = run_normalize(backend)
return backend
......@@ -16,7 +16,7 @@ from nomad import datamodel, config
from nomad.parsing import LocalBackend
from tests.test_parsing import parse_file
from tests.normalizing.conftest import run_normalize, two_d # pylint: disable=unused-import
from tests.normalizing.conftest import run_normalize # pylint: disable=unused-import
from tests.utils import assert_log
......@@ -139,13 +139,15 @@ def test_symmetry_classification_fcc():
assert all(origin_shift == expected_origin_shift)
def test_system_classification(bulk, two_d):
def test_system_classification(bulk, two_d, surface):
"""Tests that the system classification is correct for different kind of systems
"""
# Bulk system
assert bulk.get_value('system_type') == "bulk"
# 2D system
assert two_d.get_value('system_type') == "2D"
# Surface
assert two_d.get_value('system_type') == "surface"
def test_reduced_chemical_formula():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment