Skip to content

Commit

Permalink
PR Fix: Rename method, test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshramaraj committed Nov 20, 2023
1 parent 97b1dfd commit f41df22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nisystemlink/clients/auth/_auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def __init__(self, configuration: Optional[core.HttpConfiguration] = None):
super().__init__(configuration, base_path="/niauth/v1/")

@get("auth")
def get_auth(self) -> models.AuthInfo:
def authenticate(self) -> models.AuthInfo:
"""Authenticates the given x-ni-api-key and returns information about the caller."""
...
3 changes: 1 addition & 2 deletions tests/integration/auth/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def client(enterprise_config):
@pytest.mark.integration
class TestAuth:
def test__get_auth__returns(self, client: AuthClient):
auth_response = client.get_auth()
assert getattr(auth_response, "error") is None
auth_response = client.authenticate()
assert auth_response.workspaces is not None
assert len(auth_response.workspaces) >= 1

0 comments on commit f41df22

Please sign in to comment.