def tearDownClass(cls): """ Drop the existing modulestores, causing them to be reloaded. Clean up any data stored in Mongo. """ # Clean up by flushing the Mongo modulestore cls.drop_mongo_collections() # Clear out the existing modulestores, # which will cause them to be re-created # the next time they are accessed. # We do this at *both* setup and teardown just to be safe. clear_existing_modulestores() TestCase.tearDownClass()
def tearDownClass(cls): TestCase.tearDownClass() models.WeatherDetail.objects.all().delete() models.Location.objects.all().delete()