Add tests for portfolio.initial_clin_dict property

In doing this, fixed a bug on the clin.is_active property
This commit is contained in:
graham-dds
2020-02-21 11:39:04 -05:00
parent dba63cdd15
commit bb886dbe0f
2 changed files with 56 additions and 1 deletions

View File

@@ -81,5 +81,5 @@ class CLIN(Base, mixins.TimestampsMixin):
@property
def is_active(self):
return (
self.start_date <= pendulum.today() <= self.end_date
self.start_date <= pendulum.today().date() <= self.end_date
) and self.task_order.signed_at