MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / FakeQuestion

Class FakeQuestion

tests/commands/test_init_command.py:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class FakeQuestion:
21 def __init__(self, expected_return):
22 self.expected_return = expected_return
23
24 def ask(self):
25 return self.expected_return
26
27 def unsafe_ask(self):
28 return self.expected_return
29
30
31pre_commit_config_filename = ".pre-commit-config.yaml"

Calls

no outgoing calls