Skip to content

Commit 27f6745

Browse files
Format code.
1 parent 3360ec0 commit 27f6745

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tabpy/tabpy_tools/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def _evaluate_remote_script(self, remote_script):
529529
msg = response.text.replace('null', 'Success')
530530
if "Ad-hoc scripts have been disabled" in msg:
531531
msg += "\n[Remote TabPy client not allowed.]"
532-
532+
533533
status_message = (f"{response.status_code} - {msg}\n")
534534
print(status_message)
535535
return status_message

tests/unit/tools_tests/test_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def test_init(self):
2121
client = Client(endpoint="https://example.com/", query_timeout=-10.0)
2222
self.assertEqual(client._endpoint, "https://example.com/")
2323
self.assertEqual(client.query_timeout, 0.0)
24-
24+
2525
client = Client(
26-
"http://example.com:442/",
27-
remote_server=True,
26+
"http://example.com:442/",
27+
remote_server=True,
2828
localhost_endpoint="http://localhost:9004/"
2929
)
3030
self.assertEqual(client._endpoint, "http://example.com:442/")
@@ -104,14 +104,14 @@ def test_deploy_with_remote_server(self):
104104
client._evaluate_remote_script = mock_evaluate_remote_script
105105
client.deploy('name', lambda: True, 'description')
106106
mock_evaluate_remote_script.assert_called()
107-
107+
108108
def test_gen_remote_script(self):
109109
client = Client("http://example.com:9004/", remote_server=True)
110110
script = client._gen_remote_script()
111111
self.assertTrue("from tabpy.tabpy_tools.client import Client" in script)
112112
self.assertTrue("client = Client('http://example.com:9004/')" in script)
113113
self.assertFalse("client.set_credentials" in script)
114-
114+
115115
client.set_credentials("username", "password")
116116
script = client._gen_remote_script()
117117
self.assertTrue("client.set_credentials('username', 'password')" in script)

0 commit comments

Comments
 (0)