Skip to content

Commit e49454e

Browse files
Make outputs test path comparison OS-agnostic
1 parent dab297d commit e49454e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/geophires_x_tests/test_outputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_relative_output_file_path(self):
1414
m = self._new_model(input_file=input_file, original_cwd=Path('/tmp/')) # noqa: S108
1515
html_filepath = Path(m.outputs.html_output_file.value)
1616
self.assertTrue(html_filepath.is_absolute())
17-
self.assertEqual(str(html_filepath), '/tmp/foo.html') # noqa: S108
17+
self.assertEqual(str(html_filepath), str(Path('/tmp/foo.html'))) # noqa: S108
1818

1919
def test_absolute_output_file_path(self):
2020
input_file = GeophiresInputParameters(
@@ -23,7 +23,7 @@ def test_absolute_output_file_path(self):
2323
m = self._new_model(input_file=input_file, original_cwd=Path('/tmp/')) # noqa: S108
2424
html_filepath = Path(m.outputs.html_output_file.value)
2525
self.assertTrue(html_filepath.is_absolute())
26-
self.assertEqual(str(html_filepath), '/home/user/my-geophires-project/foo.html')
26+
self.assertEqual(str(html_filepath), str(Path('/home/user/my-geophires-project/foo.html')))
2727

2828
def _new_model(self, input_file=None, original_cwd=None) -> Model:
2929
stash_cwd = Path.cwd()

0 commit comments

Comments
 (0)