@@ -10,17 +10,24 @@ def test_reset_config_file():
1010
1111def 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
2025def 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