testler kendi dizinlerindeki popt'u kullansınlar

This commit is contained in:
Barış Metin
2005-07-05 06:32:45 +00:00
parent 6ff5eb5bfe
commit db9b3ae13c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class ArchiveFileTestCase(unittest.TestCase):
# pass
def testUnpackTar(self):
ctx = context.BuildContext("samples/popt/pspec.xml")
ctx = context.BuildContext("tests/popt/pspec.xml")
achv = sourcearchive.SourceArchive(ctx)
+1 -1
View File
@@ -10,7 +10,7 @@ from pisi import purl
class FetcherTestCase(unittest.TestCase):
def setUp(self):
self.ctx = context.BuildContext("samples/popt/pspec.xml")
self.ctx = context.BuildContext("tests/popt/pspec.xml")
self.url = purl.PUrl(self.ctx.spec.source.archiveUri)
self.destpath = config.config.archives_dir()
self.fetch = fetcher.Fetcher(self.url, self.destpath)
+1 -1
View File
@@ -9,7 +9,7 @@ from pisi import context
class PackageDBTestCase(unittest.TestCase):
def setUp(self):
self.ctx = context.BuildContext('samples/popt/pspec.xml')
self.ctx = context.BuildContext('tests/popt/pspec.xml')
def testAdd(self):
packagedb.add_package(self.ctx.spec.packages[0])
+1 -1
View File
@@ -9,7 +9,7 @@ from pisi import context
class SourceDBTestCase(unittest.TestCase):
def setUp(self):
self.ctx = context.BuildContext("samples/popt/pspec.xml")
self.ctx = context.BuildContext("tests/popt/pspec.xml")
def testAdd(self):
sourcedb.add_source(self.ctx.spec.source)
+2 -2
View File
@@ -9,7 +9,7 @@ import pisi.util as util
class SpecFileTestCase(unittest.TestCase):
def setUp(self):
self.spec = specfile.SpecFile()
self.spec.read("samples/popt/pspec.xml")
self.spec.read("tests/popt/pspec.xml")
def testReadSpec(self):
self.assertEqual(self.spec.source.name, "popt")
@@ -64,7 +64,7 @@ class SpecFileTestCase(unittest.TestCase):
def testCopy(self):
util.check_dir(config.tmp_dir())
self.spec.read("samples/popt/pspec.xml")
self.spec.read("tests/popt/pspec.xml")
self.spec.write(os.path.join(config.tmp_dir(), 'popt-copy.pspec.xml'))
suite = unittest.makeSuite(SpecFileTestCase)