From 6cc0419c3fbed99bdddc40bb907d8154c05c5efa Mon Sep 17 00:00:00 2001 From: Florian Obersteiner Date: Thu, 17 Feb 2022 15:22:04 +0100 Subject: [PATCH] added wd as script global --- tests/test_dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_dataset.py b/tests/test_dataset.py index c10bc53..c8609f6 100644 --- a/tests/test_dataset.py +++ b/tests/test_dataset.py @@ -5,8 +5,8 @@ import datetime import numpy as np import icartt -# example files -fns = pathlib.Path('./examples').glob('*.ict') +# working directory, example files +wd, fns = pathlib.Path('.'), pathlib.Path('./examples').glob('*.ict') def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover strOut.seek(0) @@ -63,7 +63,7 @@ def compareFiles(fn, strIn, strOut, skiplines=0, nlines=-1): # pragma: no cover class Simple1001TestCase(unittest.TestCase): def setUp(self): - self.fn = 'tests/examples/NOx_RHBrown_20040830_R0.ict' + self.fn = wd/'examples/NOx_RHBrown_20040830_R0.ict' self.nHeader = 41 def tearDown(self): -- GitLab