def dynamic_create_audit_with_control(request): """Create Program and Control, map Control to Program, create Audit under Program and dynamically make manipulations on Control (update, delete, ...) via REST API according to fixturename. Fixturename is indirect parameter that get from 'request.param' and have to be string or boolean. Return: lib.entities.entity.AssessmentTemplateEntity """ yield (dynamic_fixtures.generate_snapshots_fixtures(request.param) if request.param else None)
def dynamic_create_audit_with_control(request): """Create Program and Control, map Control to Program, create Audit under Program and dynamically make manipulations on Control (update, delete, ...) via REST API according to fixturename. Fixturename is indirect parameter that get from 'request.param' and have to be string or boolean. Return: lib.entities.entity.AssessmentTemplateEntity """ yield (dynamic_fixtures.generate_snapshots_fixtures(request.param) if request.param else None)
def _snapshots_fixtures(fixturename): """Generate snapshot fixtures used generation of common fixtures and return dictionary of executed common fixtures in scope of snapshot fixtures. """ return dynamic_fixtures.generate_snapshots_fixtures(fixturename)
def _snapshots_fixtures(fixturename): """Generate snapshot fixtures used generation of common fixtures and return dictionary of executed common fixtures in scope of snapshot fixtures. """ return dynamic_fixtures.generate_snapshots_fixtures(fixturename)