diff --git a/cloudsmith_cli/core/tests/test_init.py b/cloudsmith_cli/core/tests/test_init.py index fd8c945..229b41e 100644 --- a/cloudsmith_cli/core/tests/test_init.py +++ b/cloudsmith_cli/core/tests/test_init.py @@ -139,7 +139,6 @@ def test_initialise_api_with_refreshable_access_token_set( mocked_store_sso_tokens.assert_called_once_with( "https://example.com", "new_access_token", "new_refresh_token" ) - mocked_update_refresh_attempted_at.called_once() def test_initialise_api_with_recently_refreshed_access_token_and_empty_basic_auth_set( self, @@ -160,7 +159,7 @@ def test_initialise_api_with_recently_refreshed_access_token_and_empty_basic_aut assert config.password == "" mocked_refresh_access_token.assert_not_called() mocked_store_sso_tokens.assert_not_called() - mocked_update_refresh_attempted_at.not_called() + mocked_update_refresh_attempted_at.assert_not_called() def test_initialise_api_with_recently_refreshed_access_token_and_present_basic_auth( self, @@ -184,4 +183,4 @@ def test_initialise_api_with_recently_refreshed_access_token_and_present_basic_a assert config.password == "password" mocked_refresh_access_token.assert_not_called() mocked_store_sso_tokens.assert_not_called() - mocked_update_refresh_attempted_at.not_called() + mocked_update_refresh_attempted_at.assert_not_called()