From 218c142020d4e7da87fa3b31724e526104fd946e Mon Sep 17 00:00:00 2001 From: dandds Date: Mon, 24 Sep 2018 11:20:52 -0400 Subject: [PATCH] better date range for task order expiration date in test factory --- tests/factories.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/factories.py b/tests/factories.py index 86184b70..a5a95b38 100644 --- a/tests/factories.py +++ b/tests/factories.py @@ -196,7 +196,9 @@ class TaskOrderFactory(Base): ) expiration_date = factory.LazyFunction( lambda: datetime.date( - datetime.date.today().year + random.randrange(1, 15), 1, 1 + datetime.date.today().year + random.randrange(1, 5), + random.randrange(1, 12), + random.randrange(1, 28), ) ) clin_0001 = random.randrange(100, 100000)