chore: Skip `batch_path_differ` test on Windows

This commit is contained in:
Laerte Pereira 2022-09-29 11:51:11 -03:00
parent 07b079defd
commit 3ca7877781
No known key found for this signature in database
GPG Key ID: BB69B5C731BB8A80
1 changed files with 2 additions and 1 deletions

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):