Skip to content

Commit

Permalink
Merge pull request #13 from blueraft/patch-1
Browse files Browse the repository at this point in the history
Extend test file path platform from UNIX to become independent of the file system.
  • Loading branch information
ndaelman-hu authored Jul 12, 2024
2 parents 9312f1e + c88d699 commit daab4ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#

import logging
import os

import pytest
from nomad.datamodel import EntryArchive
Expand All @@ -31,7 +32,8 @@ def parser():

def test_example(parser):
archive = EntryArchive()
parser.parse('tests/data/example.out', archive, logging)
data_path = os.path.join("tests", "data", "example.out")
parser.parse(data_path, archive, logging)

run = archive.run[0]
assert len(run.system) == 2
Expand Down

0 comments on commit daab4ce

Please sign in to comment.