File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import unittest
22import odml
3+ import os
34import odml .validation
45import odml .terminology
56from . import test_samplefile as samplefile
@@ -206,7 +207,9 @@ def test_load_xml(self):
206207 - Properties with undefined dtypes
207208 """
208209
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 )
210213
211214 sec_test_1_err = False
212215 sec_test_2_err = False
@@ -244,7 +247,9 @@ def test_load_json(self):
244247 - Properties with undefined dtypes
245248 """
246249
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" )
248253
249254 sec_test_1_err = False
250255 sec_test_2_err = False
@@ -282,7 +287,9 @@ def test_load_yaml(self):
282287 - Properties with undefined dtypes
283288 """
284289
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" )
286293
287294 sec_test_1_err = False
288295 sec_test_2_err = False
You can’t perform that action at this time.
0 commit comments