MCPcopy
hub / github.com/sphinx-doc/sphinx / test_obj_assignment

Function test_obj_assignment

tests/test_pycode/test_pycode_parser.py:169–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def test_obj_assignment() -> None:
170 source = (
171 'obj = SomeObject() #: some object\n'
172 'obj.attr = 1 #: attr1\n'
173 'obj.attr.attr = 1 #: attr2\n'
174 )
175 parser = Parser(source)
176 parser.parse()
177 assert parser.comments == {('', 'obj'): 'some object'}
178 assert parser.definitions == {}
179
180
181def test_container_assignment() -> None:

Callers

nothing calls this directly

Calls 2

parseMethod · 0.95
ParserClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…