(self)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected