lastStatus object parsing from the server page

This commit is contained in:
DarkCat09 2023-05-24 18:09:37 +04:00
parent 9d3de01395
commit 1e4fdd2e89
2 changed files with 26 additions and 11 deletions

View file

@ -26,13 +26,13 @@ class TestLogin(unittest.TestCase):
def test_auth(self) -> None:
self.at = Client.from_hashed(self.user, self.pswd)
self.at = Client.from_credentials(self.user, self.pswd)
self.assertIsNotNone(self.at)
def test_servers(self) -> None:
if self.at is None:
self.at = Client.from_hashed(
self.at = Client.from_credentials(
self.user, self.pswd
)
@ -46,7 +46,7 @@ class TestLogin(unittest.TestCase):
def test_logout(self) -> None:
if self.at is None:
self.at = Client.from_hashed(
self.at = Client.from_credentials(
self.user, self.pswd
)