This commit is contained in:
@@ -1217,6 +1217,14 @@ class TodoRankCheck(unittest.TestCase):
|
||||
(self.config.parent / "todo.md").write_text("# todo\n")
|
||||
self.assertEqual(self.details(checkout), [f"own script checked {self.config.parent}/todo.md"])
|
||||
|
||||
def test_a_plan_in_jira_is_not_checked_in_the_checkout_or_the_configs_folder(self):
|
||||
checkout = self.changed_plan(f"{self.folder}/clone", self.STUB)
|
||||
self.config.write_text(self.config.read_text().replace('"checkout:todo.md"', '"jira:https://acme.atlassian.net/browse/ABC-12"') + 'env-file = "~/acme.env"\n')
|
||||
folder = str(self.config.parent)
|
||||
git(folder, "init", "-q")
|
||||
(self.config.parent / "todo.md").write_text("# todo\n")
|
||||
self.assertEqual((self.details(checkout), self.details(folder)), ([], []))
|
||||
|
||||
def test_a_commit_in_the_configs_folder_checks_the_plan_it_keeps_there_once_it_changes(self):
|
||||
checkout = self.changed_plan(f"{self.folder}/clone", self.STUB)
|
||||
folder = str(self.config.parent)
|
||||
|
||||
Reference in New Issue
Block a user