From d460947b1d5aa6e8028f6d6b7511a3cc113b1e01 Mon Sep 17 00:00:00 2001 From: dennisvang <29799340+dennisvang@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:48:10 +0200 Subject: [PATCH] try to fix github actions for windows/mac see this issue: https://github.com/actions/runner-images/issues/712 --- tests/test_repo.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_repo.py b/tests/test_repo.py index 394c3a0..a5f4b07 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -492,8 +492,13 @@ def test_init_paths(self): app_name='test', repo_dir=repo_dir, keys_dir=keys_dir ) # internally we should always have the absolute paths - self.assertEqual(repo_dir_abs, repo.repo_dir) - self.assertEqual(keys_dir_abs, repo.keys_dir) + self.assertTrue(repo.repo_dir.is_absolute()) + self.assertTrue(repo.keys_dir.is_absolute()) + # compare dirs + # resolve is necessary for github actions, see: + # https://github.com/actions/runner-images/issues/712#issuecomment-1163036706 + self.assertEqual(repo_dir_abs.resolve(), repo.repo_dir.resolve()) + self.assertEqual(keys_dir_abs.resolve(), repo.keys_dir.resolve()) def test_config_dict(self): app_name = 'test'