Answer stability round 1: 0 🔴, 6 🟡 (0 misread); test each failure path the review added, and return a Failure from prepare-scoring's reads
CI / tests (pull_request) Successful in 2m59s
CI / tests (pull_request) Successful in 2m59s
This commit is contained in:
@@ -1022,6 +1022,15 @@ class CommittedFiles(unittest.TestCase):
|
||||
git(self.repo, "add", "-A")
|
||||
self.assertEqual(self.commit("git commit -m x").returncode, 2)
|
||||
|
||||
def test_a_breach_in_both_copies_of_a_file_is_one_breach_which_the_work_trees_marker_overrides(self):
|
||||
self.write("Dockerfile", "FROM node:24\n")
|
||||
git(self.repo, "add", "-A")
|
||||
self.write("Dockerfile", "FROM node:24\nRUN true\n")
|
||||
blocked = self.commit("git commit -m x")
|
||||
self.assertEqual((blocked.returncode, blocked.stderr.count("Blocked by rule image-pin: ")), (2, 1))
|
||||
self.write("Dockerfile", "FROM node:24\n# rule-override image-pin: the test needs a moving tag\n")
|
||||
self.assertEqual(self.commit("git commit -m x").returncode, 0)
|
||||
|
||||
def test_a_breach_the_head_already_holds_is_left_alone(self):
|
||||
self.write("Dockerfile", "FROM node:24\n")
|
||||
self.write(".gitignore", "b\na\n")
|
||||
|
||||
Reference in New Issue
Block a user