Skip to content

Commit

Permalink
use relative path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Oct 15, 2024
1 parent 0d3a95c commit bf89e41
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/test_nomad_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#
"""Test for NOMAD examples in APM reader plugin."""

import os
import pytest

try:
Expand All @@ -38,7 +39,17 @@


@pytest.mark.parametrize(
"mainfile", get_file_parameter("src/pynxtools_apm/nomad/examples")
"mainfile",
get_file_parameter(
os.path.join(
os.path.dirname(__file__),
"..",
"src",
"pynxtools_apm",
"nomad",
"examples",
)
),
)
def test_parse_nomad_examples(mainfile):
"""Test if NOMAD examples work."""
Expand Down

0 comments on commit bf89e41

Please sign in to comment.