diff --git a/tests/test_confluence_attach.py b/tests/test_confluence_attach.py index 3761ce2ce..8cc62b9bf 100644 --- a/tests/test_confluence_attach.py +++ b/tests/test_confluence_attach.py @@ -42,7 +42,9 @@ def test_confluence_attach_file_1(self): space = "SAN" title = "atlassian-python-rest-api-wrapper" - # TODO: check if page are exists + # check if page exists, create if not + if not confluence.page_exists(space, title): + confluence.create_page(space, title, "Initial content for testing") fd, filename = tempfile.mkstemp("w") os.write(fd, b"Hello World - Version 1") @@ -87,7 +89,9 @@ def test_confluence_attach_file_2(self): space = "SAN" title = "atlassian-python-rest-api-wrapper" - # TODO: check if page are exists + # check if page exists, create if not + if not confluence.page_exists(space, title): + confluence.create_page(space, title, "Initial content for testing") fd, filename = tempfile.mkstemp("w") os.write(fd, b"Hello World - Version 1")