diff --git a/lbrynet/daemon/auth/client.py b/lbrynet/daemon/auth/client.py index 52cb0e735..b47820656 100644 --- a/lbrynet/daemon/auth/client.py +++ b/lbrynet/daemon/auth/client.py @@ -47,7 +47,7 @@ class UnAuthAPIClient: return await resp.json() -class AsyncAuthAPIClient: +class AuthAPIClient: def __init__(self, key, session, cookies, url, login_url): self.session = session self.__api_key = key @@ -131,5 +131,5 @@ class LBRYAPIClient: conf.conf_file = conf_path if not conf.settings: conf.initialize_settings() - return AsyncAuthAPIClient.get_client() if conf.settings['use_auth_http'] else \ + return AuthAPIClient.get_client() if conf.settings['use_auth_http'] else \ UnAuthAPIClient.from_url(conf.settings.get_api_connection_string()) diff --git a/tox.ini b/tox.ini index baa9d3324..4c4afc3c5 100644 --- a/tox.ini +++ b/tox.ini @@ -18,3 +18,5 @@ commands = orchstr8 download coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_transactions.BasicTransactionTest coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.wallet.test_commands.EpicAdventuresOfChris45 + coverage run -p --source={envsitepackagesdir}/lbrynet -m twisted.trial --reactor=asyncio integration.cli.test_cli.AuthCLIIntegrationTest +