Пример #1
0
def tearDownModule():
    connection = Session.connection()
    products = Product.__table__
    projects = Project.__table__
    components = Component.__table__
    connection.execute(components.delete())
    connection.execute(projects.delete())
    connection.execute(products.delete())
 def tearDown(self):
     connection = Session.connection()
     products = Product.__table__
     projects = Project.__table__
     components = Component.__table__
     sources = Source.__table__
     binaries = Binary.__table__
     connection.execute(binaries.delete())
     connection.execute(sources.delete())
     connection.execute(components.delete())
     connection.execute(projects.delete())
     connection.execute(products.delete())
Пример #3
0
 def tearDown(self):
     connection = Session.connection()
     queue_options = QueueOption.__table__
     queues = Queue.__table__
     connection.execute(queue_options.delete())
     connection.execute(queues.delete())