Skip to content

Commit

Permalink
Use hardcoded timestamp in dags test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-foss committed Nov 8, 2024
1 parent 0bdc23c commit bc1d210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api_fastapi/core_api/routes/public/test_dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ class TestDagDetails(TestDagEndpoint):
@pytest.mark.parametrize(
"query_params, dag_id, expected_status_code, dag_display_name, start_date",
[
({}, "fake_dag_id", 404, "fake_dag", datetime(2023, 12, 31, tzinfo=timezone.utc)),
({}, DAG2_ID, 200, DAG2_ID, DAG2_START_DATE),
({}, "fake_dag_id", 404, "fake_dag", "2023-12-31T00:00:00Z"),
({}, DAG2_ID, 200, DAG2_ID, "2021-06-15T00:00:00Z"),
],
)
def test_dag_details(
Expand Down Expand Up @@ -330,7 +330,7 @@ def test_dag_details(
},
"render_template_as_native_obj": False,
"timetable_summary": None,
"start_date": start_date.replace(tzinfo=None).isoformat() + "Z", # pydantic datetime format
"start_date": start_date,
"tags": [],
"template_search_path": None,
"timetable_description": "Never, external triggers only",
Expand Down

0 comments on commit bc1d210

Please sign in to comment.