Skip to content

Commit

Permalink
Path for pynxtools-stm from pynxtools-stm reader, for test purpose.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder authored and lukaspie committed Nov 25, 2024
1 parent 0f13208 commit cc936b4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/pynxtools/testing/nomad_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,29 @@
"""Test for NOMAD examples in reader plugins."""

import os
from typing import Dict, Any
from typing import Any, Dict

import pytest

try:
from nomad.parsing.parser import ArchiveParser
from nomad.datamodel import EntryArchive, Context

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

from pynxtools_stm.nomad.nomad_example_paths import EXAMPLE_PATHS

# TODO Auto collect the example path from reader plugins.
PYNXTOOLS_READER_PLUGINS_NOMAD_EXAMPLES_PATH: dict[str, str] = {
"pynxtools-stm": EXAMPLE_PATHS
}


def get_file_parameter(example_path: str):
"""
Expand Down

0 comments on commit cc936b4

Please sign in to comment.