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

Method test_docker

unit-tests/test_updater.py:420–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

418 isfile=lambda p: p.endswith('unins000.exe')), updater.METHOD_INSTALLER)
419
420 def test_docker(self):
421 with mock.patch.object(updater, 'is_binary_app', return_value=False), \
422 mock.patch('os.path.exists', side_effect=lambda p: p == '/.dockerenv'):
423 self.assertEqual(updater.detect_install_method(), updater.METHOD_DOCKER)
424
425 def test_every_method_has_instructions(self):
426 for method in (updater.METHOD_SCRIPT, updater.METHOD_PKG, updater.METHOD_INSTALLER, updater.METHOD_BREW,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected