Skip to content

Commit

Permalink
Add missing response to tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Heitzmann Gabrielli <[email protected]>
  • Loading branch information
lucas-flexcompute committed May 23, 2024
1 parent 18a26d1 commit 5460886
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions tests/test_plugins/test_mode_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,34 @@ def mock_download(resource_id, remote_filename, to_file, *args, **kwargs):
status=200,
)

responses.add(
responses.POST,
f"{Env.current.web_api_endpoint}/tidy3d/modesolver/py",
match=[
responses.matchers.json_params_matcher(
{
"projectId": PROJECT_ID,
"taskName": "BatchModeSolver_0",
"modeSolverName": MODESOLVER_NAME + "_batch_0",
"fileType": "Gz",
"source": "Python",
"protocolVersion": td.version.__version__,
}
)
],
json={
"data": {
"refId": TASK_ID,
"id": SOLVER_ID,
"status": "draft",
"createdAt": "2023-05-19T16:47:57.190Z",
"charge": 0,
"fileType": "Gz",
}
},
status=200,
)

responses.add(
responses.GET,
f"{Env.current.web_api_endpoint}/tidy3d/modesolver/py/{TASK_ID}/{SOLVER_ID}",
Expand Down

0 comments on commit 5460886

Please sign in to comment.