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 committed Oct 29, 2024
1 parent 2111036 commit 42a7bad
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 42a7bad

Please sign in to comment.