Skip to content

Commit

Permalink
Rename outdated method login_user -> login
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
unode committed Oct 30, 2023
1 parent 8489fb0 commit 68f2fc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mattermostautodriver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def login(self):
self.client.token = self.options["token"]
result = self.users.get_user("me")
else:
response = self.users.login_user(
response = self.users.login(
{
"login_id": self.options["login_id"],
"password": self.options["password"],
Expand Down Expand Up @@ -260,7 +260,7 @@ async def login(self):
self.client.token = self.options["token"]
result = await self.users.get_user("me")
else:
response = await self.users.login_user(
response = await self.users.login(
{
"login_id": self.options["login_id"],
"password": self.options["password"],
Expand Down

0 comments on commit 68f2fc4

Please sign in to comment.