Skip to content

Commit

Permalink
refactor TestPostDagRun.test_should_respond_200 (apache#44308)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawwar authored Nov 24, 2024
1 parent a46e941 commit 2ed3021
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/api_connexion/endpoints/test_dag_run_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,6 @@ def test_end_date_gte_lte(self, payload, expected_dag_run_ids):

class TestPostDagRun(TestDagRunEndpoint):
@time_machine.travel(timezone.utcnow(), tick=False)
@pytest.mark.parametrize("logical_date_field_name", ["logical_date"])
@pytest.mark.parametrize(
"dag_run_id, logical_date, note, data_interval_start, data_interval_end",
[
Expand All @@ -1101,7 +1100,6 @@ class TestPostDagRun(TestDagRunEndpoint):
def test_should_respond_200(
self,
session,
logical_date_field_name,
dag_run_id,
logical_date,
note,
Expand All @@ -1117,7 +1115,7 @@ def test_should_respond_200(

request_json = {}
if logical_date is not None:
request_json[logical_date_field_name] = logical_date
request_json["logical_date"] = logical_date
if dag_run_id is not None:
request_json["dag_run_id"] = dag_run_id
if data_interval_start is not None:
Expand Down

0 comments on commit 2ed3021

Please sign in to comment.