From bb6f0e231606a93484c6c3b4345afb1a9e9d301e Mon Sep 17 00:00:00 2001 From: dennisvang <29799340+dennisvang@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:03:01 +0200 Subject: [PATCH] test symlinks default and True --- tests/test_utils_platform_specific.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_platform_specific.py b/tests/test_utils_platform_specific.py index e5447bc..ff188b7 100644 --- a/tests/test_utils_platform_specific.py +++ b/tests/test_utils_platform_specific.py @@ -97,8 +97,10 @@ def test_run_bat_as_admin(self): @unittest.skipIf(condition=not ON_MAC, reason='macOS only') def test_install_update_macos_symlinks(self): with patch.object(ps, '_install_update_mac') as mock_install_update_mac: + ps.install_update(src_dir='', dst_dir='') + self.assertNotIn('symlinks', mock_install_update_mac.call_args.kwargs) ps.install_update(src_dir='', dst_dir='', symlinks=True) - mock_install_update_mac.assert_called_with(symlinks=True) + self.assertTrue(mock_install_update_mac.call_args.kwargs['symlinks']) @unittest.skipIf( condition=not PLATFORM_SUPPORTED, reason=_reason_platform_not_supported