Skip to content

Commit

Permalink
Test nomad parsing based on whether nomad is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 9, 2024
1 parent 29728fe commit 80c185d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/nomad/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys

import pytest

if sys.version_info < (3, 9):
pytest.skip("nomad requires python3.9", allow_module_level=True)
else:
try:
from nomad.datamodel import EntryArchive
from nomad.metainfo import Section
from nomad.units import ureg
from nomad.utils import get_logger
except ImportError:
pytest.skip("nomad not installed", allow_module_level=True)


from typing import Any

Expand Down

0 comments on commit 80c185d

Please sign in to comment.