Answer stability round 1: 0 🔴, 1 🟡; test the checkout a round-cap breach names
This commit is contained in:
@@ -108,6 +108,12 @@ class CommandBreaches(unittest.TestCase):
|
||||
def test_a_round_title_past_round_3_breaks_round_cap(self):
|
||||
self.assertEqual(checked("git commit -m 'Answer stability round 4: 0 🔴, 1 🟡; fix the parser'"), ["round-cap"])
|
||||
self.assertEqual(checked("git commit -m 'Answer stability round 3: 0 🔴, 1 🟡; fix the parser'"), [])
|
||||
|
||||
def test_a_round_cap_breach_names_the_commit_s_checkout(self):
|
||||
command = "git -C /x commit -m 'Answer stability round 4: 0 🔴, 1 🟡; fix'"
|
||||
self.assertEqual([(breach.rule, breach.directory) for breach in command_breaches(command, simple_commands(command, "/r", "/h"), "/h")], [("round-cap", "/x")])
|
||||
|
||||
def test_an_override_quoting_the_human_s_yes_lets_a_round_past_the_cap_through(self):
|
||||
command = "git commit -m 'Answer stability round 4: 0 🔴, 1 🟡; fix' # rule-override round-cap: the human answered 'yes, one more'"
|
||||
self.assertFalse(verdict(command_breaches(command, simple_commands(command, "/r", "/h"), "/h"), command, False, True).blocked)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user