MCPcopy
hub / github.com/scrapy/scrapy / test_export_items_json_field_names

Method test_export_items_json_field_names

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

Source from the content-addressed store, hash-verified

727
728 @coroutine_test
729 async def test_export_items_json_field_names(self):
730 items = [{"foo": "bar"}]
731 header = {"foo": "Foo"}
732 rows = [{"Foo": "bar"}]
733 settings = {"FEED_EXPORT_FIELDS": json.dumps(header)}
734 await self.assertExported(items, list(header.values()), rows, settings=settings)
735
736 @coroutine_test
737 async def test_export_based_on_item_classes(self):

Callers

nothing calls this directly

Calls 2

assertExportedMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected