'Add uuids to all specified in tests and fix it in source files'

def fix_tests(self, tests):

    patcher = SourcePatcher()
    for module_name in tests:
        add_import_once = True
        for test_name in tests[module_name]['tests']:
            if ((not tests[module_name]['import_valid']) and add_import_once):
                self._add_import_for_test_uuid(patcher, tests[module_name]['ast'], tests[module_name]['source_path'])
                add_import_once = False
            self._add_uuid_to_test(patcher, tests[module_name]['tests'][test_name], tests[module_name]['source_path'])
    patcher.apply_patches()
