mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
17 lines
509 B
Python
17 lines
509 B
Python
|
from nose2.tests._common import FakeStartTestRunEvent, TestCase
|
||
|
from nose2.plugins import collect
|
||
|
from nose2 import session
|
||
|
|
||
|
|
||
|
class TestCollectOnly(TestCase):
|
||
|
tags = ['unit']
|
||
|
|
||
|
def setUp(self):
|
||
|
self.session = session.Session()
|
||
|
self.plugin = collect.CollectOnly(session=self.session)
|
||
|
|
||
|
def test_startTestRun_sets_executeTests(self):
|
||
|
event = FakeStartTestRunEvent()
|
||
|
self.plugin.startTestRun(event)
|
||
|
self.assertEqual(event.executeTests, self.plugin.collectTests)
|