Files
pisi/tests/testcase.py
T
A. Murat Eren ddf985d7fb fix #2516
pisi.conf içerisinde buildno tanımlı değilken test suitimiz yanlış çalışıyormuş..
2006-04-11 13:30:05 +00:00

31 lines
823 B
Python

# Copyright (C) 2005, TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
import unittest
import os
import pisi
import pisi.api
import pisi.util
import pisi.config
import pisi.context as ctx
class TestCase(unittest.TestCase):
def setUp(self, comar = False, database = True, options = None):
if not options:
options = pisi.config.Options()
options.ignore_build_no = False
options.destdir = 'tmp'
pisi.api.init(options = options, comar = comar, database = database)
def tearDown(self, ):
pisi.api.finalize()