Skip to content

Commit

Permalink
test file changes for GET to POST changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeyaprakash-NK committed Sep 23, 2024
1 parent 0d0126a commit f9a668b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions dataproc_jupyter_plugin/tests/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ async def mock_config(config_field):
"system": mock_system,
"type": mock_type,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)["results"][0]
Expand Down
5 changes: 5 additions & 0 deletions dataproc_jupyter_plugin/tests/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ async def mock_list_dag_run_task(*args, **kwargs):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)
Expand All @@ -149,6 +150,7 @@ async def test_invalid_composer_name(monkeypatch, jp_fetch):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)
Expand All @@ -171,6 +173,7 @@ async def test_invalid_bucket_name(monkeypatch, jp_fetch):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)
Expand All @@ -193,6 +196,7 @@ async def test_invalid_dag_id(monkeypatch, jp_fetch):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)
Expand All @@ -215,6 +219,7 @@ async def test_invalid_dag_run_id(monkeypatch, jp_fetch):
"dag_id": mock_dag_id,
"dag_run_id": mock_dag_run_id,
},
method="POST",
)
assert response.code == 200
payload = json.loads(response.body)
Expand Down

0 comments on commit f9a668b

Please sign in to comment.