File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
import unittest
2
2
import odml
3
+ import os
3
4
import odml .validation
4
5
import odml .terminology
5
6
from . import test_samplefile as samplefile
@@ -206,7 +207,9 @@ def test_load_xml(self):
206
207
- Properties with undefined dtypes
207
208
"""
208
209
209
- doc = odml .load ("./resources/integration.xml" )
210
+ dir_path = os .path .dirname (os .path .realpath (__file__ ))
211
+ path = os .path .join (dir_path , "resources" , "integration.xml" )
212
+ doc = odml .load (path )
210
213
211
214
sec_test_1_err = False
212
215
sec_test_2_err = False
@@ -244,7 +247,9 @@ def test_load_json(self):
244
247
- Properties with undefined dtypes
245
248
"""
246
249
247
- doc = odml .load ("./resources/integration.json" , "JSON" )
250
+ dir_path = os .path .dirname (os .path .realpath (__file__ ))
251
+ path = os .path .join (dir_path , "resources" , "integration.json" )
252
+ doc = odml .load (path , "JSON" )
248
253
249
254
sec_test_1_err = False
250
255
sec_test_2_err = False
@@ -282,7 +287,9 @@ def test_load_yaml(self):
282
287
- Properties with undefined dtypes
283
288
"""
284
289
285
- doc = odml .load ("./resources/integration.yaml" , "YAML" )
290
+ dir_path = os .path .dirname (os .path .realpath (__file__ ))
291
+ path = os .path .join (dir_path , "resources" , "integration.yaml" )
292
+ doc = odml .load (path , "YAML" )
286
293
287
294
sec_test_1_err = False
288
295
sec_test_2_err = False
You can’t perform that action at this time.
0 commit comments