Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ffc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_organization_by_external_id(self, agreement_id):

response.raise_for_status()

return response.json()["items"]
return response.json()["items"][0]

def _get_headers(self):
return {
Expand Down
4 changes: 2 additions & 2 deletions tests/ffc/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,6 @@ def test_get_organization(mocker, mock_jwt_encoder, ffc_client_settings):
)

client = get_ffc_client()
organizations = client.get_organization_by_external_id(agreement_id)
organization = client.get_organization_by_external_id(agreement_id)

assert organizations == [{"id": "test-organization"}]
assert organization == {"id": "test-organization"}
Loading