forked from VimPlug/jedi
add a Documentation() class to the API, which will be used in the future for all kind of docstrings. Also add a documentation method on BaseDefinition that returns a Documentation object. Deprecate at the same time its doc and raw_doc functions
This commit is contained in:
@@ -93,7 +93,7 @@ def test_function_call_signature_in_doc():
|
||||
pass
|
||||
f""").goto_definitions()
|
||||
doc = defs[0].doc
|
||||
assert "f(x, y = 1, z = 'a')" in doc
|
||||
assert "f(x, y = 1, z = 'a')" in str(doc)
|
||||
|
||||
|
||||
def test_class_call_signature():
|
||||
@@ -103,7 +103,7 @@ def test_class_call_signature():
|
||||
pass
|
||||
Foo""").goto_definitions()
|
||||
doc = defs[0].doc
|
||||
assert "Foo(self, x, y = 1, z = 'a')" in doc
|
||||
assert "Foo(self, x, y = 1, z = 'a')" in str(doc)
|
||||
|
||||
|
||||
def test_position_none_if_builtin():
|
||||
|
||||
Reference in New Issue
Block a user