def test_ios_path_exists_helper(self, mock_runner): mock_response = mock.Mock() type(mock_response).exists = True mock_runner.return_value.get_last_message.return_value = mock_response self.assertTrue(_path_exists_android('/foo/bar'))
def load_stetho(self, args: list): """ Loads stetho. :param args: :return: """ agent = state_connection.get_api() device_jar_path = os.path.join( agent.env_android_paths()['cacheDirectory'], self.stetho_jar) if not _path_exists_android(device_jar_path): print('Stetho not uploaded, uploading...') if not self._upload_stetho(device_jar_path): return click.secho('Asking stetho to load...', dim=True) self.api.init_stetho()
def test_android_path_exists_helper(self, mock_api): mock_api.return_value.android_file_exists.return_value = True self.assertTrue(_path_exists_android('/foo/bar'))