better fake task order numbers for tests
This commit is contained in:
parent
041d16539d
commit
32a97c29be
@ -191,7 +191,9 @@ class TaskOrderFactory(Base):
|
|||||||
source = Source.MANUAL
|
source = Source.MANUAL
|
||||||
funding_type = FundingType.PROC
|
funding_type = FundingType.PROC
|
||||||
funding_type_other = None
|
funding_type_other = None
|
||||||
number = factory.Faker("md5")
|
number = factory.LazyFunction(
|
||||||
|
lambda: "".join(random.choices(string.ascii_uppercase + string.digits, k=13))
|
||||||
|
)
|
||||||
expiration_date = factory.LazyFunction(
|
expiration_date = factory.LazyFunction(
|
||||||
lambda: datetime.date(
|
lambda: datetime.date(
|
||||||
datetime.date.today().year + random.randrange(1, 15), 1, 1
|
datetime.date.today().year + random.randrange(1, 15), 1, 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user