Commit 28142d51 by JonahStanley

Added comment about how the resetting of the database works

parent b0d70008
...@@ -93,6 +93,11 @@ def reset_data(scenario): ...@@ -93,6 +93,11 @@ def reset_data(scenario):
@after.each_scenario @after.each_scenario
def reset_databases(scenario): def reset_databases(scenario):
'''
After each scenario, all databases are cleared/dropped. Contentstore data are stored in unique databases
whereas modulestore data is in unique collection names. This data is created implicitly during the scenarios.
If no data is created during the test, these lines equivilently do nothing.
'''
mongo = MongoClient() mongo = MongoClient()
mongo.drop_database(settings.CONTENTSTORE['OPTIONS']['db']) mongo.drop_database(settings.CONTENTSTORE['OPTIONS']['db'])
_CONTENTSTORE.clear() _CONTENTSTORE.clear()
......
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