Add tests for authocomplete in formated arguments and formatted strings

This commit is contained in:
Valentina Kiryushkina
2015-12-09 20:22:29 +03:00
parent 5f9874c29d
commit 4a24da8656
9 changed files with 24 additions and 0 deletions
@@ -0,0 +1 @@
"Yeah you can take me out the {place} But you can’t take the hood up outta me".format(place)
@@ -0,0 +1 @@
"Yeah you can take me out the {place} But you can’t take the hood up outta me".format(pla<caret>)
@@ -0,0 +1 @@
"Yeah you can take me out the {place} But you can’t take the hood up outta me".format(place="hood")
@@ -0,0 +1 @@
"Yeah you can take me out the {pla<caret>} But you can’t take the hood up outta me".format(place="hood")
@@ -0,0 +1 @@
"Yeah you can take me out the {place} But you can’t take the hood up outta me".format(**{"place":"hood"})
@@ -0,0 +1 @@
"Yeah you can take me out the {pla<caret>} But you can’t take the hood up outta me".format(**{"place":"hood"})
@@ -0,0 +1 @@
"Yeah you can take me out the {hood} But you can’t take the ho up outta me".format(hood="hood")
@@ -0,0 +1 @@
"Yeah you can take me out the {hood} But you can’t take the ho<caret> up outta me".format(hood="hood")
@@ -902,6 +902,22 @@ public class PythonCompletionTest extends PyTestCase {
doTest();
}
public void testFormatString() {
doTest();
}
public void testFormatFuncArgument() {
doTest();
}
public void testFormatStringFromStarArg() {
doTest();
}
public void testFormatStringOutsideBraces() {
doTest();
}
@Override
protected String getTestDataPath() {
return super.getTestDataPath() + "/completion";