Skip to content

Commit

Permalink
Update settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
IonesioJunior committed May 20, 2024
1 parent d7b828b commit 755c01f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/syft/tests/syft/settings/settings_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def mock_stash_get_all(root_verify_key) -> Ok:
monkeypatch.setattr(settings_service.stash, "get_all", mock_stash_get_all)

# update the settings in the settings stash using settings_service
response = settings_service.update(authed_context, update_settings)
response = settings_service.update(context=authed_context, settings=update_settings)

# not_updated_settings = response.ok()[1]

Expand All @@ -174,7 +174,7 @@ def mock_stash_get_all_error(credentials) -> Err:
return Err(mock_error_message)

monkeypatch.setattr(settings_service.stash, "get_all", mock_stash_get_all_error)
response = settings_service.update(authed_context, update_settings)
response = settings_service.update(context=authed_context, settings=update_settings)

assert isinstance(response, SyftError)
assert response.message == mock_error_message
Expand All @@ -185,7 +185,7 @@ def test_settingsservice_update_stash_empty(
update_settings: NodeSettingsUpdate,
authed_context: AuthedServiceContext,
) -> None:
response = settings_service.update(authed_context, update_settings)
response = settings_service.update(context=authed_context, settings=update_settings)

assert isinstance(response, SyftError)
assert response.message == "No settings found"
Expand Down Expand Up @@ -214,7 +214,7 @@ def mock_stash_update_error(credentials, update_settings: NodeSettings) -> Err:

monkeypatch.setattr(settings_service.stash, "update", mock_stash_update_error)

response = settings_service.update(authed_context, update_settings)
response = settings_service.update(context=authed_context, settings=update_settings)

assert isinstance(response, SyftError)
assert response.message == mock_update_error_message
Expand Down

0 comments on commit 755c01f

Please sign in to comment.