Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ def test_should_respond_400_if_manual_runs_denied(self, test_client, session, te
def test_should_response_409_for_duplicate_logical_date(self, test_client):
RUN_ID_1 = "random_1"
RUN_ID_2 = "random_2"
now = timezone.utcnow().isoformat().replace("+00:00", "Z")
now = from_datetime_to_zulu(timezone.utcnow())
note = "duplicate logical date test"
response_1 = test_client.post(
f"/dags/{DAG1_ID}/dagRuns",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def test_should_respond_200_with_existing_response_and_concrete_query(
"multiple": False,
"params": {"input_1": {"value": 1, "schema": {}, "description": None}},
"assigned_users": [],
"created_at": DEFAULT_CREATED_AT.isoformat().replace("+00:00", "Z"),
"created_at": from_datetime_to_zulu_without_ms(DEFAULT_CREATED_AT),
"responded_by_user": None,
"responded_at": None,
"chosen_options": None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from airflow.utils.state import DagRunState, State

from tests_common.test_utils.db import clear_db_runs
from tests_common.test_utils.format_datetime import from_datetime_to_zulu_without_ms

pytestmark = pytest.mark.db_test

Expand Down Expand Up @@ -125,7 +126,7 @@ def test_old_version_preserves_real_start_date(

assert response.status_code == 200
assert dag_run["start_date"] is not None, "start_date should not be None when DagRun has started"
assert dag_run["start_date"] == TIMESTAMP.isoformat().replace("+00:00", "Z")
assert dag_run["start_date"] == from_datetime_to_zulu_without_ms(TIMESTAMP)


class TestNextKwargsBackwardCompat:
Expand Down
Loading