Skip to content

Commit

Permalink
Use hardcoded timestamp in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-foss committed Nov 8, 2024
1 parent 9bf4670 commit 0f3817a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/api_fastapi/core_api/routes/public/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down Expand Up @@ -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": [],
Expand Down Expand Up @@ -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": [],
Expand Down

0 comments on commit 0f3817a

Please sign in to comment.