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:
commit
d96c465dde
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user