(self)
| 510 | |
| 511 | @coroutine_test |
| 512 | async def test_export_items(self): |
| 513 | # feed exporters use field names from Item |
| 514 | items = [ |
| 515 | self.MyItem({"foo": "bar1", "egg": "spam1"}), |
| 516 | self.MyItem({"foo": "bar2", "egg": "spam2", "baz": "quux2"}), |
| 517 | ] |
| 518 | rows = [ |
| 519 | {"egg": "spam1", "foo": "bar1", "baz": ""}, |
| 520 | {"egg": "spam2", "foo": "bar2", "baz": "quux2"}, |
| 521 | ] |
| 522 | header = self.MyItem.fields.keys() |
| 523 | await self.assertExported(items, header, rows) |
| 524 | |
| 525 | @coroutine_test |
| 526 | async def test_export_no_items_not_store_empty(self): |
nothing calls this directly
no test coverage detected