ProjectDjango/Project.py

changeset 113
9b7adb12b409
parent 110
da5ee5012004
child 115
90abe0ca004d
diff -r ecb1aefcc4e1 -r 9b7adb12b409 ProjectDjango/Project.py
--- a/ProjectDjango/Project.py	Sat Nov 18 12:40:04 2017 +0100
+++ b/ProjectDjango/Project.py	Sat Nov 18 13:07:26 2017 +0100
@@ -97,9 +97,6 @@
     Class implementing the Django project support.
     """
     RecentApplicationsKey = "Django/RecentApplications"
-##    RecentTestLabelsKey = "Django/RecentTestLabels"
-##    RecentTestTagsKey = "Django/RecentTestTags"
-##    RecentTestExcludeTagsKey = "Django/RecentTestExcludeTags"
     
     def __init__(self, plugin, parent=None):
         """
@@ -2763,35 +2760,32 @@
                 labels, pattern, tags, excludeTags, keep, reverse = \
                     dlg.getData()
                 
-            args = Utilities.parseOptionString(consoleCmd)
-            args[0] = Utilities.getExecutablePath(args[0])
-            args.append(self.__getPythonExecutable())
-            if deprecation:
-                args.append("-Wall")
-            args.append("manage.py")
-            args.append("test")
-            if pattern:
-                args.append("--pattern")
-                args.append(pattern)
-            for tag in tags:
-                args.append("--tag")
-                args.append(tag)
-            for tag in excludeTags:
-                args.append("--exclude-tag")
-                args.append(tag)
-            if keep:
-                args.append("--keepdb")
-            if reverse:
-                args.append("--reverse")
-            args.extend(labels)
-            
-            self.__adjustWorkingDirectory(args, wd)
-            started, pid = QProcess.startDetached(args[0], args[1:], wd)
-            if not started:
-                E5MessageBox.critical(
-                    None,
-                    self.tr('Process Generation Error'),
-                    self.tr('The Django process could not be started.'))
+                args = Utilities.parseOptionString(consoleCmd)
+                args[0] = Utilities.getExecutablePath(args[0])
+                args.append(self.__getPythonExecutable())
+                if deprecation:
+                    args.append("-Wall")
+                args.append("manage.py")
+                args.append("test")
+                if pattern:
+                    args.append("--pattern=" + pattern)
+                for tag in tags:
+                    args.append("--tag=" + tag)
+                for tag in excludeTags:
+                    args.append("--exclude-tag=" + tag)
+                if keep:
+                    args.append("--keepdb")
+                if reverse:
+                    args.append("--reverse")
+                args.extend(labels)
+                
+                self.__adjustWorkingDirectory(args, wd)
+                started, pid = QProcess.startDetached(args[0], args[1:], wd)
+                if not started:
+                    E5MessageBox.critical(
+                        None,
+                        self.tr('Process Generation Error'),
+                        self.tr('The Django process could not be started.'))
     
     def __runTestServer(self):
         """

eric ide

mercurial