poelzi / pida-poelzi-newbuffer

fork of pida-main

this is an experimental, long living branch for 0.7 most likely. it's a complete redesign of the core<->editor interface. goals: - editors will require dbus, direct embedding or a similar technique which must be able to control the editor from background - cleaner api - support for split views. one buffer on different views etc. (at least from the api side it's possible)

Changed (Δ287 bytes):

raw changeset »

pida-plugins/nosetest/nosetest.py (12 lines added, 6 lines removed)

pida-plugins/nosetest/service.pida (2 lines added, 2 lines removed)

Up to file-list pida-plugins/nosetest/nosetest.py:

@@ -142,7 +142,7 @@ class TestItem(object):
142
142
143
143
    @property
144
144
    def output(self):
145
        return self.trace
145
        return getattr(self, trace, 'Nothing is wrong directly here, i think')
146
146
147
147
class TestResultBrowser(PidaGladeView):
148
148
@@ -179,11 +179,12 @@ class TestResultBrowser(PidaGladeView):
179
179
            self.svc.notify_user(_("No project found"))
180
180
            return
181
181
        src = project.source_directory
182
        #XXX: hidden?
183
        self.svc.boss.cmd('commander', 'execute',
184
                commandargs = [
185
                    os.path.join(os.path.dirname(__file__),'pidanose.py'),
186
                    '--with-dbus-reporter'
182
        def call(*k, **kw): 
183
            subprocess.call(*k, **kw)
184
185
        AsyncTask(call).start([
186
                    os.path.join(os.path.dirname(__file__), 'pidanose.py'),
187
                    '--with-dbus-reporter', '-q',
187
188
                ],
188
189
                cwd=src,
189
190
        )
@@ -195,6 +196,7 @@ class TestResultBrowser(PidaGladeView):
195
196
        item = TestItem(test, self.stack[-1])
196
197
        self.source_tree.append(self.stack[-1], item)
197
198
        self.stack.append(item)
199
        self.source_tree.expand(item.parent)
198
200
199
201
    def stop_test(self):
200
202
        self.source_tree.update(self.stack[-1])
@@ -221,6 +223,8 @@ class TestResultBrowser(PidaGladeView):
221
223
        item.file = file
222
224
        self.source_tree.append(self.stack[-1], item)
223
225
        self.stack.append(item)
226
        if item.parent is not None:
227
            self.source_tree.expand(item.parent)
224
228
225
229
    def stop_context(self):
226
230
        #XXX: new status
@@ -236,6 +240,8 @@ class TestResultBrowser(PidaGladeView):
236
240
            current.status = iter(states).next()
237
241
238
242
        self.source_tree.update(current)
243
        if current.status == 'success':
244
            self.source_tree.collapse(current)
239
245
240
246
241
247
class TestOutputView(PidaView):

Up to file-list pida-plugins/nosetest/service.pida:

1
1
Name: NoseTest
2
2
Author: Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>
3
Version: 0.0.2
4
Depends: pida>=0.6 nosexml==dev
3
Version: 0.0.3
4
Depends: pida>=0.6
5
5
Category: code
6
6
7
7
Show testresults from nose-python