@after.each_scenario
def reset_databases(scenario):
 xmodule.modulestore.django.modulestore()._drop_database()
 xmodule.modulestore.django.clear_existing_modulestores()
 _CONTENTSTORE.clear()

@ after . each_scenario def reset_databases ( scenario ) : xmodule . modulestore . django . modulestore ( ) . _drop_database ( ) xmodule . modulestore . django . clear_existing_modulestores ( ) _CONTENTSTORE . clear ( )
after each scenario .