Tests should be deterministic
This commit is contained in:
parent
e6d103a345
commit
c3911c89a3
@ -67,9 +67,7 @@ class TaskOrder(Base, mixins.TimestampsMixin):
|
||||
def status(self):
|
||||
# TODO: fix task order -- implement correctly using CLINs
|
||||
# Faked for display purposes
|
||||
possible_statuses = list(Status.__members__.values())
|
||||
index = self.time_created.microsecond % len(possible_statuses)
|
||||
return possible_statuses[index]
|
||||
return Status.ACTIVE
|
||||
|
||||
@property
|
||||
def start_date(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user