diff options
author | Code Raguet <ignacio.code@gmail.com> | 2013-10-01 20:28:19 (GMT) |
---|---|---|
committer | Code Raguet <ignacio.code@gmail.com> | 2013-10-01 20:36:22 (GMT) |
commit | 70ee2f67e0772d36a0a5ca0ec957186820b26c43 (patch) | |
tree | 36393e52e1dd234394a188383f2b9e9259e695c2 /webapp/webapp/features/terrain.py | |
parent | 15b10d33512cddd7ec20ea80451c8c4fc49f6c50 (diff) |
refactor step "and_encuestador_is_binded_to_poll" to get poll_id by poll_name
Diffstat (limited to 'webapp/webapp/features/terrain.py')
-rw-r--r-- | webapp/webapp/features/terrain.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webapp/webapp/features/terrain.py b/webapp/webapp/features/terrain.py index 8a72da7..683b443 100644 --- a/webapp/webapp/features/terrain.py +++ b/webapp/webapp/features/terrain.py @@ -7,7 +7,7 @@ from fabric.context_managers import hide from django.conf import settings from django.core import management -from utils.test import remove_option_images_dir +from utils.test import remove_option_images_dir, empty_results_dir @before.all @@ -15,6 +15,7 @@ def set_browser(): world.browser = Browser('phantomjs') world.fixtures_path = os.path.join(settings.PROJECT_ROOT, 'features/fixtures') + create_results_dir() def create_results_dir(): @@ -22,7 +23,7 @@ def create_results_dir(): try: os.mkdir(dir_) except OSError: - print "\n INFO: {0} ya existe".format(dir_) + print "\n {0} ya existe".format(dir_) @after.all @@ -71,6 +72,7 @@ def before_each_feature(feature): """This is the main lettuce hook "@before.each_feature".""" drop_mongo() drop_sqlite() + empty_results_dir() if feature.name in ("Researcher adds images to options", "Researcher can't modify poll's structure", "Upload .poll_result files"): |