@@ -10,17 +10,24 @@ def test_reset_config_file():
10
10
11
11
def test_set_config_file ():
12
12
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 )
14
17
config = tls .get_config_file ()
15
18
assert config ['plotly_domain' ] == pd
16
19
assert config ['plotly_streaming_domain' ] == ps
20
+ assert config ['plotly_ssl_verification' ] == ssl_verify
21
+ assert config ['plotly_proxy_authorization' ] == proxy_auth
17
22
tls .reset_config_file () # else every would hate me :)
18
23
19
24
20
25
def test_credentials_tools ():
21
26
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' ]
23
29
assert all (x in original_creds for x in expected )
30
+
24
31
# now, if that worked, we can try this!
25
32
tls .reset_credentials_file ()
26
33
reset_creds = tls .get_credentials_file ()
0 commit comments