1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-06 11:00:46 +00:00

Merge pull request #5639 from Laerte/fix/test_batch_path_differ

fix: `batch_path_differ` test
This commit is contained in:
Andrey Rahmatullin 2022-10-05 14:44:30 +05:00 committed by GitHub
commit d96c465dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2285,6 +2285,7 @@ class BatchDeliveriesTest(FeedExportTestBase):
for expected_batch, got_batch in zip(expected, data[fmt]):
self.assertEqual(expected_batch, got_batch)
@pytest.mark.skipif(sys.platform == 'win32', reason='Odd behaviour on file creation/output')
@defer.inlineCallbacks
def test_batch_path_differ(self):
"""
@ -2305,7 +2306,7 @@ class BatchDeliveriesTest(FeedExportTestBase):
'FEED_EXPORT_BATCH_ITEM_COUNT': 1,
}
data = yield self.exported_data(items, settings)
self.assertEqual(len(items) + 1, len(data['json']))
self.assertEqual(len(items), len([_ for _ in data['json'] if _]))
@defer.inlineCallbacks
def test_stats_batch_file_success(self):