testler kendi dizinlerindeki popt'u kullansınlar
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user