From c3911c89a358264b00729b740535e5cf77e47b5a Mon Sep 17 00:00:00 2001 From: richard-dds Date: Wed, 5 Jun 2019 15:08:07 -0400 Subject: [PATCH] Tests should be deterministic --- atst/models/task_order.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/atst/models/task_order.py b/atst/models/task_order.py index c8e9948d..d3f8005d 100644 --- a/atst/models/task_order.py +++ b/atst/models/task_order.py @@ -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):