From 986ea32c71d17b1e4db8f62889cc19fa8c87b45f Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Mon, 15 Jan 2024 19:21:26 +0100 Subject: [PATCH] portable paths in snapshot tests --- tests/__snapshots__/test_apps.ambr | 2 +- tests/test_apps.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/__snapshots__/test_apps.ambr b/tests/__snapshots__/test_apps.ambr index b85285c..85ec357 100644 --- a/tests/__snapshots__/test_apps.ambr +++ b/tests/__snapshots__/test_apps.ambr @@ -26,7 +26,7 @@ ]) # --- # name: test_isatab2isatab_input_is_output - '' + '' # --- # name: test_isatab_validate list([ diff --git a/tests/test_apps.py b/tests/test_apps.py index cec6667..aa8b234 100644 --- a/tests/test_apps.py +++ b/tests/test_apps.py @@ -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):