Skip to content

Commit

Permalink
work with shortened suite name
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Jan 7, 2023
1 parent 637c738 commit 1f8eb24
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pabot/execution_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ def contains(self, other):
return True
return other.name.startswith(self.name + ".")

def __eq__(self, other):
if not isinstance(other, SuiteItem):
return False
if self.name == other.name:
return True
if other.name.endswith('.'+self.name):
return True
if self.name.endswith('.'+other.name):
return True
return False

def __hash__(self):
return RunnableItem.__hash__(self)

def tags(self):
# TODO Make this happen
return []
Expand Down

0 comments on commit 1f8eb24

Please sign in to comment.