Commit b282ec23 authored by lopezaguilar's avatar lopezaguilar
Browse files

Resolve the Tag problem to identify x_x_x or x_x numbers in the spec

parent bd8da9c3
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -554,18 +554,7 @@ class GenerateRobotData:
        return result

    def generate_reference_testcases(self, tags: list, version: str):
        # check_tags = all(item == tags[0] for item in tags)
        #
        # if check_tags is False or len(tags) == 0:
        #     raise Exception(f'ERROR: the Test Suite {{self.suite.name}} has different clauses or no clauses (Tags): '
        #                     f'{tags}\nUnable to select the corresponding Reference of this Test Suite')
        # else:
        #     # All the clauses are the same, so we select the first one
        #     reference = f'{{self.references[version]}}{tags[0].replace("_", ".")}'
        #     pics = f'PICS_{tags[0]}'
        #
        # return reference, pics
        aux = [x for x in tags if match(pattern=r'^(\d+_\d+_\d+)', string=x)]
        aux = [x for x in tags if match(pattern=r'^(\d+_\d+_\d+)|^(\d+_\d+)', string=x)]

        if len(aux) == 0:
            raise Exception(