diff options
Diffstat (limited to 'webapp/webapp/features/researcher_adds_images_to_options.py')
-rw-r--r-- | webapp/webapp/features/researcher_adds_images_to_options.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/webapp/features/researcher_adds_images_to_options.py b/webapp/webapp/features/researcher_adds_images_to_options.py index 35ace35..b651c50 100644 --- a/webapp/webapp/features/researcher_adds_images_to_options.py +++ b/webapp/webapp/features/researcher_adds_images_to_options.py @@ -2,7 +2,6 @@ import os from lettuce import step, world from nose.tools import assert_true, assert_equals -from django.conf import settings from steps import click_on @@ -36,6 +35,9 @@ def add_a_question_as_question_type(step, question, question_type): @step(u'And add a option "([^"]*)" with weight "([^"]*)" and image "([^"]*)"') def add_option_with_weight_and_image(step, option, weight, image): b = world.browser + fixtures_path = world.fixtures_path + img_path = os.path.join(fixtures_path, image) + add_option = b.find_by_xpath( '//*[@id="WGroupContainer"]/div/fieldset/div/div[3]/div[1]/div/button') add_option.click() @@ -44,8 +46,6 @@ def add_option_with_weight_and_image(step, option, weight, image): opt_id = b.find_by_xpath(p).text b.fill('groups.0.fields.0.options.{id}.text'.format(id=opt_id), option) b.fill('groups.0.fields.0.options.{id}.weight'.format(id=opt_id), weight) - fixtures_path = os.path.join(settings.PROJECT_ROOT, 'features/fixtures') - img_path = os.path.join(fixtures_path, image) input_ = 'groups.0.fields.0.options.{id}.img'.format(id=opt_id) script = """ a = $('input[name="{name}"]'); |