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()
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')
def setUp(self): FR_TestCase.setUp(self) os.environ['REVIEW_EXT_DIRS'] = os.getcwd() + '/api' os.environ['XDG_DATA_HOME'] = os.getcwd()