Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a211883

Browse filesBrowse files
committed
extend tests to include proxy_auth args
1 parent 5e526be commit a211883
Copy full SHA for a211883

File tree

1 file changed

+9
-2
lines changed
Filter options

1 file changed

+9
-2
lines changed

‎plotly/tests/test_core/test_tools/test_file_tools.py

Copy file name to clipboardExpand all lines: plotly/tests/test_core/test_tools/test_file_tools.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ def test_reset_config_file():
1010

1111
def test_set_config_file():
1212
pd, ps = 'this', 'thing'
13-
tls.set_config_file(plotly_domain=pd, plotly_streaming_domain=ps)
13+
ssl_verify, proxy_auth = True, True
14+
tls.set_config_file(plotly_domain=pd, plotly_streaming_domain=ps,
15+
plotly_ssl_verification=ssl_verify,
16+
plotly_proxy_authorization=proxy_auth)
1417
config = tls.get_config_file()
1518
assert config['plotly_domain'] == pd
1619
assert config['plotly_streaming_domain'] == ps
20+
assert config['plotly_ssl_verification'] == ssl_verify
21+
assert config['plotly_proxy_authorization'] == proxy_auth
1722
tls.reset_config_file() # else every would hate me :)
1823

1924

2025
def test_credentials_tools():
2126
original_creds = tls.get_credentials_file()
22-
expected = ['username', 'stream_ids', 'api_key']
27+
expected = ['username', 'stream_ids', 'api_key', 'proxy_username',
28+
'proxy_password']
2329
assert all(x in original_creds for x in expected)
30+
2431
# now, if that worked, we can try this!
2532
tls.reset_credentials_file()
2633
reset_creds = tls.get_credentials_file()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.