Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #299

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions binance/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
}
Loading