Skip to content

Commit

Permalink
ongoing work to fix fialed tests (part 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpbc committed Feb 5, 2025
1 parent 0926e31 commit d25139a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_routes/test_send_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def test_usage_emails(
allocated_amount=100.0,
approved=(100.0, date.today() + timedelta(days=10)),
spent=(20.0, 0),
spent_date=date.today(),
spent_date=date.today() - timedelta(days=5),
)

ninety_percent = await create_subscription(
Expand All @@ -136,7 +136,7 @@ async def test_usage_emails(
allocated_amount=100.0,
approved=(100.0, date.today() + timedelta(days=10)),
spent=(80.0, 0),
spent_date=date.today(),
spent_date=date.today() - timedelta(days=5),
)

ninety_five_percent = await create_subscription(
Expand All @@ -146,7 +146,7 @@ async def test_usage_emails(
allocated_amount=100.0,
approved=(100.0, date.today() + timedelta(days=10)),
spent=(85.0, 0),
spent_date=date.today(),
spent_date=date.today() - timedelta(days=5),
)

ninety_percent_usage = USAGE_DICT.copy()
Expand All @@ -173,8 +173,8 @@ async def test_usage_emails(
Usage(**thirty_percent_usage),
Usage(**ninety_five_percent_usage),
],
start_date=date.today() - timedelta(1),
end_date=date.today() + timedelta(1),
start_date=date.today() - timedelta(3),
end_date=date.today() - timedelta(2),
)

mock_send = AsyncMock()
Expand Down

0 comments on commit d25139a

Please sign in to comment.