MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testOverrideAttributes

Method testOverrideAttributes

tests/PaginatedList.py:567–571  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565 )
566
567 def testOverrideAttributes(self):
568 input_dict = {"a": 1, "b": 2, "c": 3}
569 overrides_dict = {"c": 4, "d": 5, "e": 6}
570 transformer = PaginatedListImpl.override_attributes(overrides_dict)
571 self.assertDictEqual(transformer(input_dict), {"a": 1, "b": 2, "c": 4, "d": 5, "e": 6})
572
573 def testGraphQlPagination(self):
574 repo = self.g.get_repo("PyGithub/PyGithub")

Callers

nothing calls this directly

Calls 1

override_attributesMethod · 0.80

Tested by

no test coverage detected