@@ -54,7 +54,7 @@ def column_attrs():
54
54
@pytest .fixture (scope = "module" )
55
55
def mock_querier ():
56
56
conn_handler = DummyConnHandler ()
57
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
57
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = conn_handler )
58
58
launch_response = DummyResponse (200 )
59
59
launch_response .set_data (method = "POST" , body = JOB_DATA )
60
60
# The query contains decimals: default response is more robust.
@@ -65,7 +65,7 @@ def mock_querier():
65
65
@pytest .fixture (scope = "module" )
66
66
def mock_querier_async ():
67
67
conn_handler = DummyConnHandler ()
68
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
68
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = conn_handler )
69
69
jobid = "12345"
70
70
71
71
launch_response = DummyResponse (303 )
@@ -105,7 +105,7 @@ def test_show_message():
105
105
tableRequest = 'notification?action=GetNotifications'
106
106
connHandler .set_response (tableRequest , dummy_response )
107
107
108
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = connHandler )
108
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = connHandler )
109
109
GaiaClass (tap_plus_conn_handler = connHandler , datalink_handler = tapplus , show_server_messages = True )
110
110
111
111
@@ -258,7 +258,7 @@ def test_cross_match_missing_mandatory_kwarg(cross_match_kwargs, missing_kwarg):
258
258
@patch .object (TapPlus , 'login' )
259
259
def test_login (mock_login ):
260
260
conn_handler = DummyConnHandler ()
261
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
261
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = conn_handler )
262
262
tap = GaiaClass (tap_plus_conn_handler = conn_handler , datalink_handler = tapplus , show_server_messages = False )
263
263
tap .login (user = "user" , password = "password" )
264
264
assert (mock_login .call_count == 2 )
@@ -271,7 +271,7 @@ def test_login(mock_login):
271
271
@patch .object (TapPlus , 'login' )
272
272
def test_login_gui (mock_login_gui , mock_login ):
273
273
conn_handler = DummyConnHandler ()
274
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
274
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = conn_handler )
275
275
tap = GaiaClass (tap_plus_conn_handler = conn_handler , datalink_handler = tapplus , show_server_messages = False )
276
276
tap .login_gui ()
277
277
assert (mock_login_gui .call_count == 1 )
@@ -283,7 +283,7 @@ def test_login_gui(mock_login_gui, mock_login):
283
283
@patch .object (TapPlus , 'logout' )
284
284
def test_logout (mock_logout ):
285
285
conn_handler = DummyConnHandler ()
286
- tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
286
+ tapplus = TapPlus (url = "http://test:1111/tap" , connhandler = conn_handler )
287
287
tap = GaiaClass (tap_plus_conn_handler = conn_handler , datalink_handler = tapplus , show_server_messages = False )
288
288
tap .logout ()
289
289
assert (mock_logout .call_count == 2 )
0 commit comments