Skip to content

Commit

Permalink
[#2388] Fix spacing typos that were causing test to be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 25, 2012
1 parent b7d224d commit 4ce2632
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ckan/tests/functional/test_datastore.py
Expand Up @@ -11,7 +11,7 @@
from ckan.lib.helpers import url_for


ELASTIC_SEARCH_HOST = config.get('elastic_search_host', '0.0.0.0: 9200')
ELASTIC_SEARCH_HOST = config.get('elastic_search_host', '0.0.0.0:9200')


class MockResponse(object):
Expand All @@ -24,7 +24,7 @@ class MockResponse(object):

def __init__(self, res):
'''
: param res: a response object returned by the paster test app
:param res: a response object returned by the paster test app
'''
self.status_code = res.status
self.content = res.body
Expand All @@ -43,7 +43,7 @@ class MockProxyServer(object):

def __init__(self, app):
'''
: param app: a paster test application
:param app: a paster test application
'''

self.elastic_search_host = ELASTIC_SEARCH_HOST
Expand All @@ -52,7 +52,7 @@ def __init__(self, app):

def _get_elastic_search_offset(self, res):
'''
: param res: a response object returned by the paster test app
:param res: a response object returned by the paster test app
'''

redirect = dict(res.headers).get('X-Accel-Redirect')
Expand All @@ -62,8 +62,8 @@ def _get_elastic_search_offset(self, res):

def _forward_request(self, res, data=None):
'''
: param res: a response object returned by the paster test app
: param data: a dictionary of data to be sent to ES. Will produce
:param res: a response object returned by the paster test app
:param data: a dictionary of data to be sent to ES. Will produce
a POST request
'''

Expand All @@ -84,8 +84,8 @@ def _forward_request(self, res, data=None):

def get(self, offset, ckan_status=200):
'''
: param offset: CKAN route to request
: param ckan_status: expected status to be returned, will throw an
:param offset: CKAN route to request
:param ckan_status: expected status to be returned, will throw an
exception if different from the actually returned
'''

Expand All @@ -94,9 +94,9 @@ def get(self, offset, ckan_status=200):

def post(self, offset, data=None, ckan_status=200):
'''
: param offset: CKAN route to request
: param data: a dictionary of data to be sent to ES.
: param ckan_status: expected status to be returned, will throw an
:param offset: CKAN route to request
:param data: a dictionary of data to be sent to ES.
:param ckan_status: expected status to be returned, will throw an
exception if different from the actually returned
'''

Expand Down

0 comments on commit 4ce2632

Please sign in to comment.