MCPcopy
hub / github.com/scrapy/scrapy / test_header_export_single_field

Method test_header_export_single_field

tests/test_exporters.py:312–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 )
311
312 def test_header_export_single_field(self):
313 for item in [self.i, ItemAdapter(self.i).asdict()]:
314 self.assertExportResult(
315 item=item,
316 fields_to_export=["age"],
317 expected=b"age\r\n22\r\n",
318 )
319
320 def test_header_export_two_items(self):
321 for item in [self.i, ItemAdapter(self.i).asdict()]:

Callers

nothing calls this directly

Calls 1

assertExportResultMethod · 0.95

Tested by

no test coverage detected