fast parser test improvements
This commit is contained in:
1 parent
b32065052a
commit
0268109d1d
1 file changed
+7
-3
@@ -13,10 +13,14 @@ class Abc():
|
|||||||
|
|
||||||
class Two(Abc):
|
class Two(Abc):
|
||||||
def h(self):
|
def h(self):
|
||||||
self.
|
self
|
||||||
""" # ^ here is the first completion
|
""" # ^ here is the first completion
|
||||||
|
|
||||||
b = " def h(self):\n" \
|
b = " def g(self):\n" \
|
||||||
" self."
|
" self."
|
||||||
|
assert jedi.Script(a, 8, 12, 'example.py').completions()
|
||||||
|
assert jedi.Script(a + b, path='example.py').completions()
|
||||||
|
|
||||||
|
a = a[:-1] + '.\n'
|
||||||
assert jedi.Script(a, 8, 13, 'example.py').completions()
|
assert jedi.Script(a, 8, 13, 'example.py').completions()
|
||||||
assert jedi.Script(a + b, path='example.py').completions()
|
assert jedi.Script(a + b, path='example.py').completions()
|
||||||
Reference in new issue
Block a user