diff --git a/doorstop/cli/tests/test_all.py b/doorstop/cli/tests/test_all.py index 3c6081a5..56d90438 100644 --- a/doorstop/cli/tests/test_all.py +++ b/doorstop/cli/tests/test_all.py @@ -815,13 +815,19 @@ def test_publish_tree_no_path(self): self.assertRaises(SystemExit, main, ["publish", "all"]) def test_publish_tree_markdown_with_index(self): + """Verify 'doorstop publish' can create Markdown output for a tree, + with an index.""" + path = tempfile.mkdtemp() + os.remove(path) + self.assertRaises(SystemExit, main(["publish", "all", path, "--markdown", "--index"])) + + def test_publish_tree_markdown_with_index_no_tree(self): """Verify 'doorstop publish' can create Markdown output for a tree, with an index.""" path = os.path.join(self.temp, "all") self.assertIs(None, main(["publish", "all", path, "--markdown", "--index"])) self.assertTrue(os.path.isdir(path)) - self.assertFalse(os.path.isfile(os.path.join(path, "index.html"))) - + self.assertFalse(os.path.isfile(os.path.j class TestPublishCommand(TempTestCase):