File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
plotly/tests/test_core/test_plotly Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ from unittest import TestCase
1
2
import plotly .plotly .plotly as py
2
3
import plotly .tools as tls
3
4
@@ -24,4 +25,23 @@ def test_sign_in():
24
25
assert creds ['username' ] == un
25
26
assert creds ['api_key' ] == ak
26
27
# TODO, and check it!
27
- # assert creds['stream_ids'] == si
28
+ # assert creds['stream_ids'] == si
29
+
30
+
31
+ class TestSignIn (TestCase ):
32
+
33
+ def test_get_config (self ):
34
+ plotly_domain = 'test domain'
35
+ plotly_streaming_domain = 'test streaming domain'
36
+ config1 = py .get_config ()
37
+ py ._config ['plotly_domain' ] = plotly_domain
38
+ config2 = py .get_config ()
39
+ py ._config ['plotly_streaming_domain' ] = plotly_streaming_domain
40
+ config3 = py .get_config ()
41
+ self .assertEqual (config2 ['plotly_domain' ], plotly_domain )
42
+ self .assertNotEqual (
43
+ config2 ['plotly_streaming_domain' ], plotly_streaming_domain
44
+ )
45
+ self .assertEqual (
46
+ config3 ['plotly_streaming_domain' ], plotly_streaming_domain
47
+ )
You can’t perform that action at this time.
0 commit comments