Skip to content

Commit

Permalink
portable paths in snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jan 15, 2024
1 parent 2b9ed1c commit 986ea32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/__snapshots__/test_apps.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
])
# ---
# name: test_isatab2isatab_input_is_output
'<Result IsaException("Can\'t output ISA-tab files to same directory as as input: /home/sellts_c/Code/altamisa/tests/data/i_minimal == /home/sellts_c/Code/altamisa/tests/data/i_minimal")>'
'<Result IsaException("Can\'t output ISA-tab files to same directory as as input: /home/runner/work/altamisa/tests/data/i_minimal == /home/runner/work/altamisa/tests/data/i_minimal")>'
# ---
# name: test_isatab_validate
list([
Expand Down
4 changes: 3 additions & 1 deletion tests/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def test_isatab2isatab_input_is_output(tmpdir, snapshot: SnapshotAssertion):

result = runner.invoke(isatab2isatab.app, argv)
assert result.exit_code == 1
assert snapshot == str(result)
assert snapshot == str(result).replace(
os.path.dirname(__file__), "/home/runner/work/altamisa/tests"
)


def test_isatab2dot(tmpdir):
Expand Down

0 comments on commit 986ea32

Please sign in to comment.