Skip to content

Commit

Permalink
test: Fix tests broken by 8b93e84
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Aug 29, 2021
1 parent c4cb566 commit aec0aeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions kingfisher_scrapy/kingfisher_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ def __init__(self, url, key):
self.headers = {'Authorization': f'ApiKey {key}'}

def create_file(self, data, files):
return self._post('/api/v1/submit/file/', data, files=files)
return self._post('api/v1/submit/file/', data, files=files)

def create_file_item(self, data):
return self._post('/api/v1/submit/item/', data)
return self._post('api/v1/submit/item/', data)

def create_file_error(self, data):
return self._post('/api/v1/submit/file_errors/', data)
return self._post('api/v1/submit/file_errors/', data)

def end_collection_store(self, data):
return self._post('/api/v1/submit/end_collection_store/', data)
return self._post('api/v1/submit/end_collection_store/', data)

def _post(self, path, data, **kwargs):
return treq.post(urljoin(self.url, path), headers=self.headers, data=data, **kwargs)
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def spider_with_crawler(spider_class=BaseSpider, *, settings=None, **kwargs):
def spider_with_files_store(files_store, settings=None, **kwargs):
crawler_settings = {
'FILES_STORE': files_store,
'KINGFISHER_API_URI': 'http://httpbin.org/anything',
'KINGFISHER_API_URI': 'http://httpbin.org/anything/',
'KINGFISHER_API_KEY': 'xxx',
}
if settings:
Expand Down

0 comments on commit aec0aeb

Please sign in to comment.