add expiration_date to manual task order form
This commit is contained in:
dandds
2018-09-18 08:56:58 -04:00
committed by GitHub
9 changed files with 62 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import os
import datetime
import pytest
import alembic.config
import alembic.command
@@ -124,6 +125,7 @@ def extended_financial_verification_data(pdf_upload):
return {
"funding_type": "RDTE",
"funding_type_other": "other",
"expiration_date": "1/1/{}".format(datetime.date.today().year + 1),
"clin_0001": "50000",
"clin_0003": "13000",
"clin_1001": "30000",

View File

@@ -170,6 +170,11 @@ class TaskOrderFactory(Base):
funding_type = FundingType.PROC
funding_type_other = None
number = "toABC123"
expiration_date = factory.LazyFunction(
lambda: datetime.date(
datetime.date.today().year + random.randrange(1, 15), 1, 1
)
)
clin_0001 = random.randrange(100, 100000)
clin_0003 = random.randrange(100, 100000)
clin_1001 = random.randrange(100, 100000)