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.
This commit is contained in:
@@ -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):
|
|||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user