fixed PY-4539 Completion: elif keyword shouldn't be available in completion list after else

extracted keyword completion tests
This commit is contained in:
Ekaterina Tuzova
2013-10-29 17:01:40 +04:00
parent 0b790578ad
commit e6d73b2b6d
40 changed files with 176 additions and 116 deletions
@@ -0,0 +1,2 @@
for x in []:
continue
@@ -0,0 +1,2 @@
for x in []:
conti<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
elif<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
eli<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
elif<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
eli<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
else:
@@ -0,0 +1,3 @@
if True:
a = 1
els<caret>
@@ -0,0 +1 @@
a = 1 if True else <caret>
@@ -0,0 +1 @@
a = 1 if True el<caret>
@@ -0,0 +1,5 @@
try:
a = 1
except:
a = 2
else:<caret>
@@ -0,0 +1,5 @@
try:
a = 1
except:
a = 2
els<caret>
@@ -0,0 +1,3 @@
if True:
a = 1
else:
@@ -0,0 +1,3 @@
if True:
a = 1
els<caret>
@@ -0,0 +1,3 @@
try:
a = 1
except<caret>
@@ -0,0 +1,3 @@
try:
a = 1
exce<caret>
@@ -0,0 +1,3 @@
try:
a = 1
except<caret>
@@ -0,0 +1,3 @@
try:
a = 1
exce<caret>
@@ -0,0 +1,5 @@
try:
a = 1
except:
a = 2
finally:
@@ -0,0 +1,5 @@
try:
a = 1
except:
a = 2
fina<caret>
@@ -0,0 +1 @@
from . import <caret>
@@ -0,0 +1 @@
from . im<caret>
@@ -0,0 +1 @@
from foo import #import
@@ -0,0 +1 @@
from foo <caret> #import
@@ -0,0 +1,2 @@
# foo
import <caret>
@@ -0,0 +1,2 @@
# foo
impo<caret>
@@ -0,0 +1,3 @@
types = {
"key1" : lambda <caret>
}
@@ -0,0 +1,3 @@
types = {
"key1" : la<caret>
}
@@ -0,0 +1,5 @@
for x in []:
try:
a = 1
finally:
co<caret>
@@ -0,0 +1,5 @@
if True:
a = 1
else:
pass
<caret>
@@ -0,0 +1 @@
def foo(x=None):
@@ -0,0 +1 @@
def foo(x=Non<caret>):
@@ -0,0 +1,2 @@
def foo():
nonlocal # foo
@@ -0,0 +1,2 @@
def foo():
nonl<caret> # foo
@@ -0,0 +1,2 @@
def foo():
yield <caret>
@@ -0,0 +1,2 @@
def foo():
yi<caret>