MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / method

Method method

unit-tests/test_updater.py:409–414  ·  view source on GitHub ↗
(exe, **kw)

Source from the content-addressed store, hash-verified

407
408 def test_pkg_and_brew_and_inno(self):
409 def method(exe, **kw):
410 with mock.patch.object(updater, 'is_binary_app', return_value=True), \
411 mock.patch.object(sys, 'executable', exe), \
412 mock.patch('os.path.exists', return_value=False), \
413 mock.patch('os.path.isfile', side_effect=kw.get('isfile', lambda p: False)):
414 return updater.detect_install_method()
415 self.assertEqual(method('/usr/local/keepercommandercli/bin/keeper-commander'), updater.METHOD_PKG)
416 self.assertEqual(method('/opt/homebrew/Cellar/keepercommander/1/bin/x'), updater.METHOD_BREW)
417 self.assertEqual(method('C:\\Program Files\\Keeper\\keeper-commander.exe',

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected