Answer principles round 1: 1 🔴, 7 🟡 (0 misread); every effect is handed in as an argument, no test patches a global, and the traces principle scopes tools that run on their user's machine
CI / tests (pull_request) Successful in 3m43s

This commit is contained in:
2026-11-19 12:42:03 +01:00
parent 8ca612b7a4
commit cb3135bc8c
124 changed files with 1437 additions and 793 deletions
+1 -3
View File
@@ -4,7 +4,6 @@ import pathlib
import sys
import tempfile
import unittest
import unittest.mock
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
@@ -171,8 +170,7 @@ class JiraPlan(unittest.TestCase):
def test_a_search_that_never_names_a_last_page_fails_the_read(self):
self.pages = [{"issues": [], "nextPageToken": "more"}] * 2
with unittest.mock.patch("atlassian.jira.MAX_PAGES", 2):
self.assertEqual(self.store().read(), Failure("the search for ABC-12's children did not end within 2 pages"))
self.assertEqual(dataclasses.replace(self.store(), max_pages=2).read(), Failure("the search for ABC-12's children did not end within 2 pages"))
def test_an_issue_in_another_shape_fails_the_read_naming_it(self):
good = issue("ABC-1")