Kaydet (Commit) 40b74439 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

tests: Set pisi config before running tests

üst db4a4928
......@@ -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"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment