mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-13 17:21:52 +08:00
clean up caches clearing
This commit is contained in:
@@ -11,9 +11,9 @@ import jedi
|
||||
|
||||
def test_is_keyword():
|
||||
results = Script('import ', 1, 1, None).goto_definitions()
|
||||
assert len(results) == 1 and results[0].is_keyword == True
|
||||
assert len(results) == 1 and results[0].is_keyword is True
|
||||
results = Script('str', 1, 1, None).goto_definitions()
|
||||
assert len(results) == 1 and results[0].is_keyword == False
|
||||
assert len(results) == 1 and results[0].is_keyword is False
|
||||
|
||||
def make_definitions():
|
||||
"""
|
||||
@@ -71,6 +71,7 @@ def test_function_call_signature_in_doc():
|
||||
doc = defs[0].doc
|
||||
assert "f(x, y = 1, z = 'a')" in doc
|
||||
|
||||
|
||||
def test_class_call_signature():
|
||||
defs = Script("""
|
||||
class Foo:
|
||||
|
||||
Reference in New Issue
Block a user