Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Sep 29, 2024
1 parent 244cf7a commit 75b69d9
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public void testPyCreateClassInSameModule() throws Exception {
ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT);

assertContentsEqual("" +
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n" +
"class MyClass(object):\n" +
" pass\n" +
"\n" +
"\n" +
"MyClass()"
Expand Down Expand Up @@ -108,8 +108,8 @@ public void testPyCreateClassInSameModule4() throws Exception {
" pass\n" +
"\n" +
"\n" +
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n" +
"class MyClass(object):\n" +
" pass\n" +
"\n" +
"\n"
+
Expand Down Expand Up @@ -146,9 +146,9 @@ public void testPyCreateClassInSameModule5() throws Exception {
" pass\n" +
"\n" +
"\n" +
"class MyClass(${object}):\n"
"class MyClass(object):\n"
+
" ${pass}${cursor}\n" +
" pass\n" +
"\n" +
"\n" +
"MyClass()" +
Expand Down Expand Up @@ -176,8 +176,8 @@ public void testPyCreateClassInSameModule6() throws Exception {
"a = 10\n" +
"\n" +
"\n" +
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n"
"class MyClass(object):\n" +
" pass\n"
+
"\n" +
"\n" +
Expand All @@ -201,11 +201,11 @@ public void testPyCreateClassWithParameters() throws Exception {
ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT);

assertContentsEqual("" +
"class MyClass(${object}):\n" +
"class MyClass(object):\n" +
" \n"
+
" def __init__(self, ${aa}, ${bb}, ${param2}):\n" +
" ${pass}${cursor}\n" +
" def __init__(self, aa, bb, param2):\n" +
" pass\n" +
"\n" +
"\n"
+
Expand All @@ -224,11 +224,11 @@ public void testPyCreateClassWithParameters2() throws Exception {
ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT);

assertContentsEqual("" +
"class MyClass(${object}):\n" +
"class MyClass(object):\n" +
" \n"
+
" def __init__(self, ${aa}, ${bb}, ${my_foo}):\n" +
" ${pass}${cursor}\n" +
" def __init__(self, aa, bb, my_foo):\n" +
" pass\n" +
"\n" +
"\n"
+
Expand All @@ -255,8 +255,8 @@ public void testPyCreateClassInSameModule2() throws Exception {
assertContentsEqual("" +
"import foo\n" +
"\n" +
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n"
"class MyClass(object):\n" +
" pass\n"
+
"\n" +
"\n" +
Expand Down Expand Up @@ -292,8 +292,8 @@ public void testPyCreateClassInSameModule3() throws Exception {
"\n" +
"\n"
+
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n" +
"class MyClass(object):\n" +
" pass\n" +
"\n" +
"\n" +
"class Bar(object):\n"
Expand Down Expand Up @@ -334,8 +334,8 @@ public void testPyCreateClassEndOfFile() throws Exception {
"\n" +
"\n"
+
"class MyClass(${object}):\n" +
" ${pass}${cursor}\n" +
"class MyClass(object):\n" +
" pass\n" +
"\n" +
"\n", document.get());
}
Expand All @@ -351,8 +351,8 @@ public void testPyCreateClassEndOfFile2() throws Exception {
document);

assertContentsEqual("" +
"class Foo(${object}):\n" +
" ${pass}${cursor}\n" +
"class Foo(object):\n" +
" pass\n" +
"\n" +
"\n", document.get());
}
Expand Down

0 comments on commit 75b69d9

Please sign in to comment.