Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebrissow committed Jul 22, 2024
1 parent c75723a commit 9c7f82f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,10 @@ def test_count_atoms_success(self, mock_request, client):

def test_get_atoms_by_field(self, mock_request, client):
query = [{'field': 'name', 'value': 'test'}]
expected_request_data = {"action": "get_atoms_by_field", "input": {'query': query}}
expected_request_data = {
"action": "get_atoms_by_field",
"input": {'query': {k['field']: k['value'] for k in query}},
}
expected_response = (14, 26)
mock_request.return_value.status_code = 200
mock_request.return_value.content = serialize(expected_response)
Expand Down

0 comments on commit 9c7f82f

Please sign in to comment.