Skip to content

Commit

Permalink
Fix extensions test
Browse files Browse the repository at this point in the history
Signed-off-by: Yohanna Lisnichuk <yohanitalisnichuk@gmail.com>
  • Loading branch information
yolile committed May 20, 2020
1 parent 7ed9f13 commit 9930380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def test_get_local_file_path_including_filestore(sample, expected):
spider = spider_with_crawler(sample=sample)
spider.crawler.settings['FILES_STORE'] = 'data'
extension_store = KingfisherFilesStore.from_crawler(spider.crawler)
assert extension_store.get_local_file_path_including_filestore('file.json') == expected
assert extension_store.get_local_file_path_including_filestore('file.json', spider) == expected


@pytest.mark.parametrize('sample,expected', [
Expand All @@ -370,4 +370,4 @@ def test_get_local_file_path_including_filestore(sample, expected):
def test_get_local_file_path_excluding_filestore(sample, expected):
spider = spider_with_crawler(sample=sample)
extension_store = KingfisherFilesStore.from_crawler(spider.crawler)
assert extension_store.get_local_file_path_excluding_filestore('file.json') == expected
assert extension_store.get_local_file_path_excluding_filestore('file.json', spider) == expected

0 comments on commit 9930380

Please sign in to comment.