MCPcopy
hub / github.com/scrapy/scrapy / test_to_dict

Method test_to_dict

tests/test_item.py:242–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 assert E.fields == {"save": {"default": "A"}, "load": {"default": "A"}}
241
242 def test_to_dict(self):
243 class TestItem(Item):
244 name = Field()
245
246 i = TestItem()
247 i["name"] = "John"
248 assert dict(i) == {"name": "John"}
249
250 def test_copy(self):
251 class TestItem(Item):

Callers

nothing calls this directly

Calls 1

TestItemClass · 0.70

Tested by

no test coverage detected