tests: Set pisi config before running tests
This commit is contained in:
@@ -15,6 +15,9 @@ import os
|
||||
import unittest
|
||||
import database
|
||||
|
||||
import pisi
|
||||
import pisi.context as ctx
|
||||
|
||||
from database.repodbtest import RepoDBTestCase
|
||||
from database.packagedbtest import PackageDBTestCase
|
||||
from database.sourcedbtest import SourceDBTestCase
|
||||
@@ -46,6 +49,16 @@ from uritest import UriTestCase
|
||||
from utiltest import UtilTestCase
|
||||
from versiontest import VersionTestCase
|
||||
|
||||
def setup():
|
||||
options = pisi.config.Options()
|
||||
options.ignore_build_no = False
|
||||
options.destdir = 'repos/tmp'
|
||||
pisi.api.set_options(options)
|
||||
pisi.api.set_comar(False)
|
||||
|
||||
ctx.config.values.general.distribution = "Pardus"
|
||||
ctx.config.values.general.distribution_release = "2007"
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if os.path.exists("repos/tmp"):
|
||||
|
||||
Reference in New Issue
Block a user