def system(): yield create_system( BrewtilsSystem( name="original", version="v0.0.1", namespace="beer_garden", commands=[BrewtilsCommand(name="original")], )) System.drop_collection()
def data_cleanup(): """Cleanup all data between test modules to ensure each one is independent""" yield Event.drop_collection() File.drop_collection() Garden.drop_collection() Job.drop_collection() RawFile.drop_collection() Request.drop_collection() RemoteUser.drop_collection() Role.drop_collection() System.drop_collection() User.drop_collection() UserToken.drop_collection()
def drop(): Garden.drop_collection() Role.drop_collection() System.drop_collection() User.drop_collection()
def drop_systems(app): System.drop_collection()
def drop(self, mongo_conn): System.drop_collection()
def drop(): yield Garden.drop_collection() System.drop_collection()
def system_cleanup(): yield System.drop_collection()
def setup_systems(app, mongo_system): System.drop_collection() mongo_system.deep_save()