mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-22 05:11:25 +08:00
Add TestDocstring
This commit is contained in:
@@ -328,6 +328,16 @@ class TestRegression(TestBase):
|
|||||||
assert 'start' in words
|
assert 'start' in words
|
||||||
|
|
||||||
|
|
||||||
|
class TestDocstring(TestBase):
|
||||||
|
|
||||||
|
def test_function_doc(self):
|
||||||
|
defs = self.definition("""
|
||||||
|
def func():
|
||||||
|
'''Docstring of `func`.'''
|
||||||
|
func""")
|
||||||
|
self.assertEqual(defs[0].raw_doc, 'Docstring of `func`.')
|
||||||
|
|
||||||
|
|
||||||
class TestFeature(TestBase):
|
class TestFeature(TestBase):
|
||||||
def test_full_name(self):
|
def test_full_name(self):
|
||||||
""" feature request #61"""
|
""" feature request #61"""
|
||||||
|
|||||||
Reference in New Issue
Block a user