@@ -18,7 +18,7 @@ def success_test(test, expected_response, api_method, *args, **expected_kwargs):
18
18
resp = api_method (* args )
19
19
20
20
# validate response is as expected
21
- test .assertEquals (resp , expected_response .text )
21
+ test .assertEqual (resp , expected_response .text )
22
22
23
23
# validate call is made as expected
24
24
expected_args = expected_kwargs .pop ('expected_args' )
@@ -57,7 +57,7 @@ def setUp(self):
57
57
'expected_args' : [self .service .get_server_url ()]
58
58
, 'data' : '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
59
59
, 'headers' : {u'Content-Type' : u'application/json' }
60
- , 'timeout' : 30
60
+ , 'timeout' : 300
61
61
}
62
62
63
63
rows = '{id:1234}'
@@ -99,7 +99,7 @@ def setUp(self):
99
99
'expected_args' : [self .service .get_server_url ()]
100
100
, 'data' : '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
101
101
, 'headers' : {u'Content-Type' : u'application/json' }
102
- , 'timeout' : 30
102
+ , 'timeout' : 300
103
103
}
104
104
105
105
rows = '{id:1234}'
@@ -141,7 +141,7 @@ def setUp(self):
141
141
'expected_args' : [self .service .get_server_url ()]
142
142
, 'data' : '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
143
143
, 'headers' : {u'Content-Type' : u'application/json' }
144
- , 'timeout' : 30
144
+ , 'timeout' : 300
145
145
}
146
146
147
147
rows = '{id:1234}'
@@ -184,7 +184,7 @@ def setUp(self):
184
184
'expected_args' : [self .service .get_server_url ()]
185
185
, 'data' : {'sql' : sql , "schemaName" : schema }
186
186
, 'headers' : None
187
- , 'timeout' : 30
187
+ , 'timeout' : 300
188
188
}
189
189
190
190
self .args = [
@@ -225,7 +225,7 @@ def setUp(self):
225
225
'expected_args' : [self .service .get_server_url ()]
226
226
, 'data' : {"schemaName" : schema , "query.queryName" : query }
227
227
, 'headers' : None
228
- , 'timeout' : 30
228
+ , 'timeout' : 300
229
229
}
230
230
231
231
self .args = [
0 commit comments