Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions tests/services/requests/test_requests_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def test_check_expired_requests(
now = datetime.now(timezone.utc).replace(tzinfo=None)

# created only should not be picked up
created_request = create_request(
identity=identity_simple, expires_at=now.isoformat()
)
created_request = create_request(identity=identity_simple, expires_at=now)
Request.index.refresh()
check_expired_requests()
Request.index.refresh()
Expand Down Expand Up @@ -58,9 +56,7 @@ def test_check_expired_requests(
assert request_list.total == 0

# expiry date in future should not be touched
s2 = submit_request(
identity_simple, expires_at=(now + timedelta(days=1)).isoformat()
)
s2 = submit_request(identity_simple, expires_at=now + timedelta(days=1))
Request.index.refresh()
check_expired_requests()
Request.index.refresh()
Expand All @@ -75,7 +71,7 @@ def test_check_expired_requests(
)
assert request_list.total == 0

s3 = submit_request(identity_simple, expires_at=now.isoformat())
s3 = submit_request(identity_simple, expires_at=now)
Request.index.refresh()
check_expired_requests()
Request.index.refresh()
Expand Down
Loading