Example #1
0
    def setUp(self):
        super(TestGuruMeditationReport, self).setUp()

        self.curr_g = greenlet.getcurrent()

        self.report = gmr.TextGuruMeditation(FakeVersionObj())

        self.old_stderr = None
    def setUp(self):
        super(TestGuruMeditationReport, self).setUp()

        self.curr_g = greenlet.getcurrent()

        self.report = gmr.TextGuruMeditation(FakeVersionObj())

        self.old_stderr = None

        self.CONF = self.useFixture(GmrConfigFixture(CONF)).conf
Example #3
0
    def test_guru_meditation_report_generation(self):
        """Regression test for bug #1568208.

        This test ensures a text guru meditation report can be generated
        successfully and generation does not fail e.g. due to incorrectly
        registered config options.

        """

        # NOTE(rpodolyaka): we are only interested in success of run() call
        # here, it's up to oslo_reports tests to check the generated report
        generator = gmr.TextGuruMeditation(version)
        generator.run()