From e33715592e3f76bd2da0c44e65a99280d8465dfe Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Fri, 2 Dec 2011 11:09:49 +0100 Subject: [PATCH] fixed PY-5183 Test only created for first method --- .../python/codeInsight/testIntegration/PyTestGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/codeInsight/testIntegration/PyTestGenerator.java b/python/src/com/jetbrains/python/codeInsight/testIntegration/PyTestGenerator.java index 18dda4f12f58..bce691bdafd2 100644 --- a/python/src/com/jetbrains/python/codeInsight/testIntegration/PyTestGenerator.java +++ b/python/src/com/jetbrains/python/codeInsight/testIntegration/PyTestGenerator.java @@ -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);