Tests should be deterministic

This commit is contained in:
richard-dds 2019-06-05 15:08:07 -04:00
parent e6d103a345
commit c3911c89a3

View File

@ -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):