Commit 5fd1e742 by Will Daly

Lettuce tests now import one_time_startup.py to ensure

that mongo caches are initialized for the test database.
This avoids a warning from the mongo modulestore.
parent 3a13cd7b
...@@ -3,6 +3,11 @@ from splinter.browser import Browser ...@@ -3,6 +3,11 @@ from splinter.browser import Browser
from logging import getLogger from logging import getLogger
import time import time
# Let the LMS and CMS do their one-time setup
# For example, setting up mongo caches
from lms import one_time_startup
from cms import one_time_startup
logger = getLogger(__name__) logger = getLogger(__name__)
logger.info("Loading the lettuce acceptance testing terrain file...") logger.info("Loading the lettuce acceptance testing terrain file...")
...@@ -16,7 +21,6 @@ def initial_setup(server): ...@@ -16,7 +21,6 @@ def initial_setup(server):
# world.browser = Browser('phantomjs') # world.browser = Browser('phantomjs')
# world.browser = Browser('firefox') # world.browser = Browser('firefox')
@before.each_scenario @before.each_scenario
def reset_data(scenario): def reset_data(scenario):
# Clean out the django test database defined in the # Clean out the django test database defined in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment