Skip to content

Commit

Permalink
Adjust tests for the new 'new' classification and the avoidance of us…
Browse files Browse the repository at this point in the history
…eless retriggers/backfills
  • Loading branch information
marco-c committed Oct 16, 2023
1 parent 75087a7 commit 4992964
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 118 deletions.
6 changes: 6 additions & 0 deletions mozci/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ def classifications(self):
and any(result.group == self.name and not result.ok for result in t.results)
]

# TODO: Only used for testing, find a way to monkey patch!
@classifications.setter
def classifications(self, classifications):
for c, t in zip(classifications, self.tasks):
t.classification = c

@property
def durations(self) -> List[int]:
data = []
Expand Down
Loading

0 comments on commit 4992964

Please sign in to comment.