Skip to content

Commit

Permalink
Add rm test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Oct 25, 2024
1 parent ca8ff99 commit 5f7d92a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion firecrest/v2/AsyncClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _json_response(
[response], expected_status_code
)

return response.json()
return response.json() if status_code != 204 else {}

async def systems(self) -> List[dict]:
"""Returns available systems.
Expand Down
4 changes: 4 additions & 0 deletions tests/v2/responses/delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"status_code": 204,
"response": null
}

0 comments on commit 5f7d92a

Please sign in to comment.