mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Fix a stub docs issue
This commit is contained in:
@@ -37,6 +37,17 @@ def test_operator_doc(Script):
|
||||
assert len(d.docstring()) > 100
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'code, help_part', [
|
||||
('str', 'Create a new string object'),
|
||||
('str.strip', 'Return a copy of the string'),
|
||||
]
|
||||
)
|
||||
def test_stdlib_doc(Script, code, help_part):
|
||||
h, = Script(code).help()
|
||||
assert help_part in h.docstring(raw=True)
|
||||
|
||||
|
||||
def test_lambda(Script):
|
||||
d, = Script('lambda x: x').help(column=0)
|
||||
assert d.type == 'keyword'
|
||||
|
||||
Reference in New Issue
Block a user