MCPcopy
hub / github.com/scrapy/scrapy / test_export_tuple

Method test_export_tuple

tests/test_feedexport.py:855–863  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

853
854 @coroutine_test
855 async def test_export_tuple(self):
856 items = [
857 {"foo": "bar1", "egg": "spam1"},
858 {"foo": "bar2", "egg": "spam2", "baz": "quux"},
859 ]
860
861 settings = {"FEED_EXPORT_FIELDS": ("foo", "baz")}
862 rows = [{"foo": "bar1", "baz": ""}, {"foo": "bar2", "baz": "quux"}]
863 await self.assertExported(items, ["foo", "baz"], rows, settings=settings)
864
865 @coroutine_test
866 async def test_export_feed_export_fields(self):

Callers

nothing calls this directly

Calls 1

assertExportedMethod · 0.80

Tested by

no test coverage detected