Skip to content

Commit

Permalink
Work on getting CI build for Python working
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Dec 17, 2024
1 parent 0c94388 commit 47323bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bindings/python/tests/test_specutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
import SpecUtils
from datetime import datetime

import os
from pathlib import Path


class TestSpecUtilsBasic(unittest.TestCase):
def setUp(self):
self.spec = SpecUtils.SpecFile()

def test_load_file(self):
self.spec.loadFile("examples/passthrough.n42", SpecUtils.ParserType.Auto)
script_dir = Path(__file__).parent.resolve()
file_path = os.path.join(script_dir, "..", "examples", "passthrough.n42")
self.spec.loadFile(file_path, SpecUtils.ParserType.Auto)
self.assertTrue(self.spec.numMeasurements() > 0)

def test_create_measurement(self):
Expand Down

0 comments on commit 47323bf

Please sign in to comment.