Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a211883

Browse files
committed
extend tests to include proxy_auth args
1 parent 5e526be commit a211883

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plotly/tests/test_core/test_tools/test_file_tools.py

Lines 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)