@@ -21,10 +21,10 @@ def test_init(self):
21
21
client = Client (endpoint = "https://example.com/" , query_timeout = - 10.0 )
22
22
self .assertEqual (client ._endpoint , "https://example.com/" )
23
23
self .assertEqual (client .query_timeout , 0.0 )
24
-
24
+
25
25
client = Client (
26
- "http://example.com:442/" ,
27
- remote_server = True ,
26
+ "http://example.com:442/" ,
27
+ remote_server = True ,
28
28
localhost_endpoint = "http://localhost:9004/"
29
29
)
30
30
self .assertEqual (client ._endpoint , "http://example.com:442/" )
@@ -104,14 +104,14 @@ def test_deploy_with_remote_server(self):
104
104
client ._evaluate_remote_script = mock_evaluate_remote_script
105
105
client .deploy ('name' , lambda : True , 'description' )
106
106
mock_evaluate_remote_script .assert_called ()
107
-
107
+
108
108
def test_gen_remote_script (self ):
109
109
client = Client ("http://example.com:9004/" , remote_server = True )
110
110
script = client ._gen_remote_script ()
111
111
self .assertTrue ("from tabpy.tabpy_tools.client import Client" in script )
112
112
self .assertTrue ("client = Client('http://example.com:9004/')" in script )
113
113
self .assertFalse ("client.set_credentials" in script )
114
-
114
+
115
115
client .set_credentials ("username" , "password" )
116
116
script = client ._gen_remote_script ()
117
117
self .assertTrue ("client.set_credentials('username', 'password')" in script )
0 commit comments