Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
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, folder.parents[1]), todo).rank()
|
||||
ranked = file_plan(located(temp, folder.parents[2], {}), 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, folder.parents[1]), todo).rank()
|
||||
ranked = file_plan(located(temp, folder.parents[2], {}), todo).rank()
|
||||
self.assertIsInstance(ranked, ranking.Ranked)
|
||||
self.assertIn("| code health by 1 | 25.4 |", todo.read_text())
|
||||
self.assertEqual(file_plan(located(temp, folder.parents[1]), todo).check(), [])
|
||||
self.assertEqual(file_plan(located(temp, folder.parents[2], {}), todo).check(), [])
|
||||
|
||||
|
||||
class Risk(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user