Skip to content

Commit

Permalink
Fix tests for setdefault
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Aug 19, 2020
1 parent 245f1ee commit e07e00f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/extensions/test_kingfisher_files_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_item_scraped_with_build_file_from_response(sample, path, tmpdir):
response.body = b'{"key": "value"}'
response.request = Mock()
response.request.url = 'https://example.com/remote.json'
response.request.meta = {'file_name': 'file.json'}

item = spider.build_file_from_response(response, file_name='file.json', data_type='release_package',
encoding='iso-8859-1')
Expand Down
1 change: 1 addition & 0 deletions tests/test_base_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def test_build_file_from_response():
response.body = b'{"key": "value"}'
response.request = Mock()
response.request.url = 'https://example.com/remote.json'
response.request.meta = {'file_name': 'file.json'}

actual = spider.build_file_from_response(response, file_name='file.json', data_type='release_package',
encoding='iso-8859-1')
Expand Down

0 comments on commit e07e00f

Please sign in to comment.