Skip to content

Commit

Permalink
test symlinks default and True
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang committed Jun 11, 2024
1 parent d4761fb commit bb6f0e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_utils_platform_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb6f0e2

Please sign in to comment.