Answer stability round 2: 0 🔴, 1 🟡 (0 misread); the repo check holds the README's pytest pins too, and run-tests' comment names it instead of counting copies
This commit is contained in:
@@ -22,3 +22,7 @@ class TaskBenchImage(unittest.TestCase):
|
||||
installed = set(re.findall(r"\b(pytest(?:-xdist)?==[\d.]+)", DOCKERFILE))
|
||||
pins = {word for word in PYTEST if re.fullmatch(r"pytest(?:-xdist)?==[\d.]+", word)}
|
||||
self.assertEqual(installed, pins)
|
||||
|
||||
def test_each_pytest_pin_in_the_readme_is_the_one_run_tests_uses(self):
|
||||
pinned = {word for word in PYTEST if re.fullmatch(r"pytest==[\d.]+", word)}
|
||||
self.assertEqual(set(re.findall(r"\bpytest==[\d.]+", (ROOT / "README.md").read_text(encoding="utf-8"))), pinned)
|
||||
|
||||
Reference in New Issue
Block a user