Move the completion tests.

This commit is contained in:
Dave Halter
2017-01-04 22:34:43 +01:00
parent 9341df11bf
commit 12a9ef48f7

View File

@@ -0,0 +1,17 @@
from textwrap import dedent
from jedi import Script
def test_in_whitespace():
code = dedent('''
def x():
pass''')
assert len(Script(code, column=2).completions()) > 20
def test_empty_init():
"""This was actually an issue."""
code = dedent('''\
class X(object): pass
X(''')
assert Script(code).completions()