def validate(audit): disk = AuditDB(audit) try: # Make sure all objects completed all stages. for stage in sorted(PluginManager.STAGES.values()): assert disk.get_pending_data(stage) == set() finally: disk.close()
def validate(audit): disk = AuditDB(audit) try: # Make sure all objects completed all stages. for stage in sorted(STAGES.values()): assert disk.get_pending_data(stage) == set() finally: disk.close()
def validate(audit): audit = AuditConfig() audit.from_dictionary({ "audit_name": audit, "audit_db": "sqlite://%s.db" % audit, }) disk = AuditDB(audit) try: # Make sure all objects completed all stages. for stage in sorted(PluginManager.STAGES.values()): assert disk.get_pending_data(stage) == set() finally: disk.close()