diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 7b75cf6f..5186f808 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -43,7 +43,7 @@ jobs: flake8 . --statistics - name: Test with pytest run: | - pytest tests/ + python -m pytest tests/ - name: Test document build run: | python -m pip install sphinx sphinx-rtd-theme diff --git a/README.md b/README.md index 895e688a..ffa4a7d9 100644 --- a/README.md +++ b/README.md @@ -396,7 +396,7 @@ ws_client = WebsocketClient(stream_url='wss://testnet.binance.vision') # In case packages are not installed yet pip install -r requirements/requirements-test.txt -pytest +python -m pytest tests/ ``` ## Limitation diff --git a/binance/lib/utils.py b/binance/lib/utils.py index 50aea4e9..d8ecd8cd 100644 --- a/binance/lib/utils.py +++ b/binance/lib/utils.py @@ -126,7 +126,9 @@ def parse_proxies(proxies: dict): return { "http_proxy_host": parsed.hostname, "http_proxy_port": parsed.port, - "http_proxy_auth": (parsed.username, parsed.password) - if parsed.username and parsed.password - else None, + "http_proxy_auth": ( + (parsed.username, parsed.password) + if parsed.username and parsed.password + else None + ), }