From 8e675494840dbdced6c3b0f8308e27e593806000 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Tue, 30 Sep 2014 11:08:31 -0400 Subject: [PATCH] Fix cms hardcoded keys --- cms/djangoapps/contentstore/features/course-settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/djangoapps/contentstore/features/course-settings.py b/cms/djangoapps/contentstore/features/course-settings.py index 07335460c1..4896ffddb1 100644 --- a/cms/djangoapps/contentstore/features/course-settings.py +++ b/cms/djangoapps/contentstore/features/course-settings.py @@ -150,7 +150,7 @@ def i_see_new_course_image(_step): images = world.css_find(img_css) assert len(images) == 1 img = images[0] - expected_src = '/c4x/MITx/999/asset/image.jpg' + expected_src = 'image.jpg' # Don't worry about the domain in the URL success_func = lambda _: img['src'].endswith(expected_src) @@ -160,8 +160,8 @@ def i_see_new_course_image(_step): @step('the image URL should be present in the field') def image_url_present(_step): field_css = '#course-image-url' - expected_value = '/c4x/MITx/999/asset/image.jpg' - assert world.css_value(field_css) == expected_value + expected_value = 'image.jpg' + assert world.css_value(field_css).endswith(expected_value) ############### HELPER METHODS ####################