Skip to content

Commit

Permalink
Fix invalid timeframe format in Project's integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nifadyev committed Nov 5, 2024
1 parent ae96554 commit 14de74a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/factories/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
import zoneinfo


def project_request_factory() -> Dict[str, Union[str, bool, int, None]]:
start_date = fake.past_date()
def project_request_factory() -> Dict[str, Union[str, bool, int]]:
start_date = fake.future_date()

request_body = {
"active": fake.boolean(),
"auto_estimates": fake.boolean(),
"currency": fake.currency_code(),
"end_date": fake.date_between(start_date=start_date).isoformat(),
"end_date": fake.date_between(start_date=start_date, end_date="+90d").isoformat(),
"estimated_hours": fake.random_int(),
"is_private": fake.boolean(),
"is_shared": fake.boolean(),
"name": fake.uuid4(),
"name": str(fake.uuid4()),
"start_date": start_date.isoformat(),
"template": fake.boolean(),
}
Expand Down

0 comments on commit 14de74a

Please sign in to comment.