Skip to content

Commit

Permalink
reactivate nomad check in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Oct 15, 2024
1 parent 44b8ab1 commit 6dbbdce
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions tests/test_nomad_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@
import os
import pytest

# try:
# from nomad.parsing.parser import ArchiveParser
# from nomad.datamodel import EntryArchive, Context
# except ImportError:
# pytest.skip(
# "Skipping NOMAD example tests because nomad is not installed",
# allow_module_level=True,
# )

from nomad.parsing.parser import ArchiveParser
from nomad.datamodel import EntryArchive, Context
try:
from nomad.parsing.parser import ArchiveParser
from nomad.datamodel import EntryArchive, Context
except ImportError:
pytest.skip(
"Skipping NOMAD example tests because nomad is not installed",
allow_module_level=True,
)

from pynxtools.testing.nomad_example import (
get_file_parameter,
Expand Down

0 comments on commit 6dbbdce

Please sign in to comment.