mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-5183 Test only created for first method
This commit is contained in:
@@ -41,8 +41,9 @@ public class PyTestGenerator {
|
||||
if (methods.size() == 0)
|
||||
fileText.append("pass\n");
|
||||
|
||||
for (String method : methods)
|
||||
fileText.append("def ").append(method).append("(self):\n self.fail()\n\n");
|
||||
for (String method : methods) {
|
||||
fileText.append("def ").append(method).append("(self):\n self.fail()\n\n ");
|
||||
}
|
||||
|
||||
PsiFile psiFile = PyUtil.getOrCreateFile(
|
||||
dialog.getTargetDir() + "/" + fileName, project);
|
||||
|
||||
Reference in New Issue
Block a user