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
CI / tests (pull_request) Successful in 3m43s
This commit is contained in:
@@ -293,7 +293,7 @@ class CodeHealth(unittest.TestCase):
|
||||
pathlib.Path(temp, "docs").mkdir()
|
||||
pathlib.Path(temp, "docs", "comprehension-history.md").write_text(SCORED.format(overall="7.00"))
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
ranked = file_plan(located(temp, pathlib.Path.home()), todo).rank()
|
||||
ranked = file_plan(located(temp, folder.parents[1]), todo).rank()
|
||||
self.assertIsInstance(ranked, ranking.Ranked)
|
||||
self.assertEqual(ranked.under_bar, [])
|
||||
self.assertIn("| code health by 1 | 25.4 |", todo.read_text())
|
||||
@@ -310,10 +310,10 @@ class CodeHealth(unittest.TestCase):
|
||||
pathlib.Path(temp, "docs").mkdir()
|
||||
pathlib.Path(temp, "docs", "comprehension-history.md").write_text(SCORED.format(overall="6.50"))
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
ranked = file_plan(located(temp, pathlib.Path.home()), todo).rank()
|
||||
ranked = file_plan(located(temp, folder.parents[1]), todo).rank()
|
||||
self.assertIsInstance(ranked, ranking.Ranked)
|
||||
self.assertIn("| code health by 1 | 25.4 |", todo.read_text())
|
||||
self.assertEqual(file_plan(located(temp, pathlib.Path.home()), todo).check(), [])
|
||||
self.assertEqual(file_plan(located(temp, folder.parents[1]), todo).check(), [])
|
||||
|
||||
|
||||
class Risk(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user