From 0f3817acbe19f35358a92c56cf6047c19065f8be Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Fri, 8 Nov 2024 21:20:58 +0530 Subject: [PATCH] Use hardcoded timestamp in tests --- tests/api_fastapi/core_api/routes/public/test_tasks.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/api_fastapi/core_api/routes/public/test_tasks.py b/tests/api_fastapi/core_api/routes/public/test_tasks.py index e73498d3a6610..44d5b98490675 100644 --- a/tests/api_fastapi/core_api/routes/public/test_tasks.py +++ b/tests/api_fastapi/core_api/routes/public/test_tasks.py @@ -115,8 +115,7 @@ def test_should_respond_200(self, test_client): "retries": 0.0, "retry_delay": {"__type": "TimeDelta", "days": 0, "seconds": 300, "microseconds": 0}, "retry_exponential_backoff": False, - "start_date": self.task1_start_date.replace(tzinfo=None).isoformat() - + "Z", # pydantic datetime format + "start_date": "2020-06-15T00:00:00Z", "task_id": "op1", "task_display_name": "op1", "template_fields": [], @@ -153,8 +152,7 @@ def test_mapped_task(self, test_client): "retries": 0.0, "retry_delay": {"__type": "TimeDelta", "days": 0, "microseconds": 0, "seconds": 300}, "retry_exponential_backoff": False, - "start_date": self.task1_start_date.replace(tzinfo=None).isoformat() - + "Z", # pydantic datetime format + "start_date": "2020-06-15T00:00:00Z", "task_id": "mapped_task", "task_display_name": "mapped_task", "template_fields": [], @@ -262,8 +260,7 @@ def test_should_respond_200_serialized(self, test_client): "retries": 0.0, "retry_delay": {"__type": "TimeDelta", "days": 0, "seconds": 300, "microseconds": 0}, "retry_exponential_backoff": False, - "start_date": self.task1_start_date.replace(tzinfo=None).isoformat() - + "Z", # pydantic datetime format + "start_date": "2020-06-15T00:00:00Z", "task_id": "op1", "task_display_name": "op1", "template_fields": [],