From 5025f1d68bfb12bf27eee5a588635688ee7956b3 Mon Sep 17 00:00:00 2001 From: Allison Beemer <66966224+anbeemer@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:29:43 -0500 Subject: [PATCH] Unit test added for markdown to html conversion --- test/test_page.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_page.py b/test/test_page.py index bf776f5..c31b41a 100644 --- a/test/test_page.py +++ b/test/test_page.py @@ -44,16 +44,17 @@ def test_already_online_raises(self, course, page_has_local_images): def test_doesnt_find_deleted(self, course, page_has_local_images): name = page_has_local_images.name page_has_local_images.publish(course,overwrite=True) - f = mc.find_page_in_course(name,course) + f = mc.course_interaction_functions.find_page_in_course(name,course) f.delete() - assert not mc.is_page_already_uploaded(name,course) + assert not mc.course_interaction_functions.is_page_already_uploaded(name,course) def test_can_find_published(self, course, page_has_local_images): page_has_local_images.publish(course,overwrite=True) - assert mc.is_page_already_uploaded(page_has_local_images.name,course) + assert mc.course_interaction_functions.is_page_already_uploaded(page_has_local_images.name,course) def test_content(self, course): content = course.get_pages(search_term='Test Has Local Images')[0].show_latest_revision().body assert 'testing source including images' in content assert 'alt="A menagerie of Herwig Hauser surfaces"' in content + assert ('## an image using html' not in content) and "The markdown header was not translated to html."