Update shift swap test to make it stable (#2732)

This commit is contained in:
Matias Bordese 2023-08-02 14:10:23 -03:00 committed by GitHub
parent 45e70ddd88
commit 935540e368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ from common.api_helpers.utils import serialize_datetime_as_utc_timestamp
from common.insight_log import EntityEvent
description = "my shift swap request"
tomorrow = timezone.now() + datetime.timedelta(days=1)
tomorrow = timezone.now().replace(hour=0, minute=0, second=0, microsecond=0) + datetime.timedelta(days=1)
two_days_from_now = tomorrow + datetime.timedelta(days=1)
mock_success_response = Response(status=status.HTTP_200_OK)
@ -482,7 +482,7 @@ def test_related_shifts(ssr_setup, make_on_call_shift, make_user_auth_headers):
user = beneficiary
today = timezone.now().replace(hour=0, minute=0, second=0, microsecond=0)
start = today + timezone.timedelta(days=2)
start = today + timezone.timedelta(days=1)
duration = timezone.timedelta(hours=8)
data = {
"start": start,