Ronny Pfannschmidt avatar Ronny Pfannschmidt committed 1c0011a

remove awareness of collect entries from the master view

Comments (0)

Files changed (2)


         self.widget.set_size_request(800, 400)
-    def run_once(self, items=None, collectonly=False):
+    def run_once(self, test_ids=None, collectonly=False):
         #XXX: after collect cleanup
-        if items:
-            items = [getattr(x, 'test_id', x) for x in items]
-        if items is not None:
-            self.run_view.set_tests(items)
+        if test_ids is not None:
+            self.run_view.set_tests(test_ids)
         if self._gw:
-        self._gw, ch = make_gw(collectonly=collectonly, items=items)
+        self._gw, ch = make_gw(collectonly=collectonly, items=test_ids)
         if collectonly:


     def on_run_tests__clicked(self, _):
         selected_tests = filter(self._filter_function, self.collection)
-        self.master.run_once(items=selected_tests)
+        test_ids = [x.test_id for x in selected_tests]
+        self.master.run_once(test_ids=test_ids)
     def on_run_collect__clicked(self, btn):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.