Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def call_update_command(self):
with mock.patch('tldr.cli.build_index', return_value=None):
result = self.runner.invoke(cli.update)
return result