Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
def drop():
    Garden.drop_collection()
    Role.drop_collection()
    System.drop_collection()
    User.drop_collection()
Ejemplo n.º 3
0
def drop():
    yield
    Garden.drop_collection()
    System.drop_collection()
Ejemplo n.º 4
0
 def setup_class(cls):
     connect("beer_garden", host="mongomock://localhost")
     Garden.drop_collection()
     Garden.ensure_indexes()
Ejemplo n.º 5
0
def garden_cleanup():
    yield
    Garden.drop_collection()