Esempio n. 1
0
 async def test_config_file(self):
     async with MangadexClient.from_config(self.file_path) as client:
         assert not client.anonymous_mode
         assert client.username
         assert client.password
         assert client.refresh_token
         assert not client.session_token
Esempio n. 2
0
 async def test_config_file_username_password_only(self):
     async with MangadexClient.from_config(
             self.file_path,
             section_name="asyncdex_username_and_password_only") as client:
         assert not client.anonymous_mode
         assert client.username
         assert client.password
         assert not client.refresh_token
         assert not client.session_token