Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Oct 5, 2024
1 parent aae1bbf commit c0dd6ee
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testPyCreateClassInSameModule() throws Exception {
ExecutePyCreate.execute(pyCreateClass, info, PyCreateClass.LOCATION_STRATEGY_BEFORE_CURRENT);

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

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

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

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

0 comments on commit c0dd6ee

Please sign in to comment.