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):
|
def status(self):
|
||||||
# TODO: fix task order -- implement correctly using CLINs
|
# TODO: fix task order -- implement correctly using CLINs
|
||||||
# Faked for display purposes
|
# Faked for display purposes
|
||||||
possible_statuses = list(Status.__members__.values())
|
return Status.ACTIVE
|
||||||
index = self.time_created.microsecond % len(possible_statuses)
|
|
||||||
return possible_statuses[index]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def start_date(self):
|
def start_date(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user