Rename client and add test_cli to tox.ini

This commit is contained in:
hackrush 2018-08-12 18:22:59 +05:30 committed by Jack Robison
parent 08b4fd6942
commit 2590523fa1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 4 additions and 2 deletions

View file

@ -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())

View file

@ -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