aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/tests/test_finish.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_finish.py')
-rw-r--r--tests/test_finish.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_finish.py b/tests/test_finish.py
index 38fceb1..e7ac11b 100644
--- a/tests/test_finish.py
+++ b/tests/test_finish.py
@@ -88,6 +88,13 @@ class FinishTest(Cli):
self.assertEqual(out.count("TASKS.md"), 1, out)
self.assertEqual(self.out("log", "--format=%s", "master"), "bk\ninit\n")
+ def test_new_untracked_dir_file_path_accepted(self):
+ (self.wt / "docs" / "notes").mkdir(parents=True)
+ (self.wt / "docs" / "notes" / "SCOPE.md").write_text("s\n")
+ code, out, err = self.finish("t-three", "-m", "ok", "--commit", "impl", "docs/notes/SCOPE.md", "--no-push")
+ self.assertEqual((code, err), (0, ""), out)
+ self.assertIn("docs/notes/SCOPE.md", self.out("show", "--stat", "--format=", "master~1"))
+
def test_dirty_outside_paths_refused_before_done(self):
self.write_code()
(self.wt / "DESIGN.md").write_text("stray\n")