Skip to content

Commit

Permalink
Test: update assertion for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-nicka committed Feb 1, 2016
1 parent 74f6358 commit 8aa377d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_query_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def success_test(test, expected_response, api_method, *args, **expected_kwargs):
resp = api_method(*args)

# validate response is as expected
test.assertEquals(resp, expected_response.text)
test.assertEqual(resp, expected_response.text)

# validate call is made as expected
expected_args = expected_kwargs.pop('expected_args')
Expand Down Expand Up @@ -57,7 +57,7 @@ def setUp(self):
'expected_args': [self.service.get_server_url()]
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
, 'headers': {u'Content-Type': u'application/json'}
, 'timeout': 30
, 'timeout': 300
}

rows = '{id:1234}'
Expand Down Expand Up @@ -99,7 +99,7 @@ def setUp(self):
'expected_args': [self.service.get_server_url()]
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
, 'headers': {u'Content-Type': u'application/json'}
, 'timeout': 30
, 'timeout': 300
}

rows = '{id:1234}'
Expand Down Expand Up @@ -141,7 +141,7 @@ def setUp(self):
'expected_args': [self.service.get_server_url()]
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
, 'headers': {u'Content-Type': u'application/json'}
, 'timeout': 30
, 'timeout': 300
}

rows = '{id:1234}'
Expand Down Expand Up @@ -184,7 +184,7 @@ def setUp(self):
'expected_args': [self.service.get_server_url()]
, 'data': {'sql': sql, "schemaName": schema}
, 'headers': None
, 'timeout': 30
, 'timeout': 300
}

self.args = [
Expand Down Expand Up @@ -225,7 +225,7 @@ def setUp(self):
'expected_args': [self.service.get_server_url()]
, 'data': {"schemaName": schema, "query.queryName": query}
, 'headers': None
, 'timeout': 30
, 'timeout': 300
}

self.args = [
Expand Down

0 comments on commit 8aa377d

Please sign in to comment.