mirror of https://github.com/scrapy/scrapy.git
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]):
|
for expected_batch, got_batch in zip(expected, data[fmt]):
|
||||||
self.assertEqual(expected_batch, got_batch)
|
self.assertEqual(expected_batch, got_batch)
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.platform == 'win32', reason='Odd behaviour on file creation/output')
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def test_batch_path_differ(self):
|
def test_batch_path_differ(self):
|
||||||
"""
|
"""
|
||||||
|
|
@ -2305,7 +2306,7 @@ class BatchDeliveriesTest(FeedExportTestBase):
|
||||||
'FEED_EXPORT_BATCH_ITEM_COUNT': 1,
|
'FEED_EXPORT_BATCH_ITEM_COUNT': 1,
|
||||||
}
|
}
|
||||||
data = yield self.exported_data(items, settings)
|
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
|
@defer.inlineCallbacks
|
||||||
def test_stats_batch_file_success(self):
|
def test_stats_batch_file_success(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue