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_init_command(self, repo_dir=path.join(ROOT, 'mock_tldr'),
platform='linux'):
with mock.patch('click.prompt', side_effect=[repo_dir, platform]):
result = self.runner.invoke(cli.init)
return result