File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def test_relative_output_file_path(self):
14
14
m = self ._new_model (input_file = input_file , original_cwd = Path ('/tmp/' )) # noqa: S108
15
15
html_filepath = Path (m .outputs .html_output_file .value )
16
16
self .assertTrue (html_filepath .is_absolute ())
17
- self .assertEqual (str (html_filepath ), str (Path ('/tmp/foo.html' ))) # noqa: S108
17
+ self .assertEqual (str (html_filepath ). replace ( 'D:' , '' ) , str (Path ('/tmp/foo.html' ))) # noqa: S108
18
18
19
19
def test_absolute_output_file_path (self ):
20
20
input_file = GeophiresInputParameters (
@@ -23,7 +23,7 @@ def test_absolute_output_file_path(self):
23
23
m = self ._new_model (input_file = input_file , original_cwd = Path ('/tmp/' )) # noqa: S108
24
24
html_filepath = Path (m .outputs .html_output_file .value )
25
25
self .assertTrue (html_filepath .is_absolute ())
26
- self .assertEqual (str (html_filepath ), str (Path ('/home/user/my-geophires-project/foo.html' )))
26
+ self .assertEqual (str (html_filepath ). replace ( 'D:' , '' ) , str (Path ('/home/user/my-geophires-project/foo.html' )))
27
27
28
28
def _new_model (self , input_file = None , original_cwd = None ) -> Model :
29
29
stash_cwd = Path .cwd ()
You can’t perform that action at this time.
0 commit comments