def setUp(self):
     FR_TestCase.setUp(self)
     sys.argv = ['fedora-review', '-b', '1']
     Settings.init(True)
     self.spec_file = os.path.join(os.path.abspath('.'),
                                   'test_regressions',
                                   'test_107_1.spec')
     self.srpm_file = os.path.join(os.path.abspath('.'),
                                   'test_regressions',
                                   'test_107_1-1.0-1.fc17.src.rpm')
     Mock.reset()
Example #2
0
    def setUp(self):
        FR_TestCase.setUp(self)
        self.init_test('test-checks',
                        argv=['-b','1234', '--cache', '--no-build'])
        #for crap in glob(os.path.join(os.getcwd(), 'results', '*.*')):
        #      os.unlink(crap)

        self.checks = None
        self.srpm = os.path.join(os.getcwd(),
                            'python-test-1.0-1.fc16.src.rpm')
        self.spec = os.path.join(os.getcwd(),'python-test.spec')
        self.source = os.path.join(os.getcwd(),
                                   'python-test-1.0.tar.gz')
Example #3
0
 def tearDown(self):
     del os.environ['XDG_DATA_HOME']
     del os.environ['REVIEW_EXT_DIRS']
     FR_TestCase.tearDown(self)
 def init_opt_test(self, argv=None, cd=None, wd=None, root=None):
     ''' Setup an options test. '''
     cd = cd if cd else 'options'
     argv = argv if argv else []
     FR_TestCase.init_test(self, cd, argv, wd, buildroot=root)
Example #5
0
 def setUp(self):
     FR_TestCase.setUp(self)
     os.environ['REVIEW_EXT_DIRS'] = os.getcwd() + '/api'
     os.environ['XDG_DATA_HOME'] = os.getcwd()