From ad31a8dc25810eb0838aa3299875d10344de5004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 29 Jun 2005 22:07:26 +0000 Subject: [PATCH] =?UTF-8?q?Testler=20de=20pspec.xml=20dosyalar=C4=B1n?= =?UTF-8?q?=C4=B1=20kullans=C4=B1n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/archivetests.py | 8 ++++---- tests/fetchertests.py | 2 +- tests/packagedbtests.py | 2 +- tests/sourcedbtests.py | 2 +- tests/specfiletests.py | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/archivetests.py b/tests/archivetests.py index 85e21d28..a90cd8a9 100644 --- a/tests/archivetests.py +++ b/tests/archivetests.py @@ -16,7 +16,7 @@ class ArchiveFileTestCase(unittest.TestCase): # pass def testUnpackTar(self): - ctx = context.BuildContext("samples/popt/popt.pspec") + ctx = context.BuildContext("samples/popt/pspec.xml") achv = sourcearchive.SourceArchive(ctx) @@ -41,7 +41,7 @@ class ArchiveFileTestCase(unittest.TestCase): "5af9dd7d754f788cf511c57ce0af3d555fed009d") def testUnpackZip(self): - ctx = context.BuildContext("tests/sandbox/sandbox.pspec") + ctx = context.BuildContext("tests/sandbox/pspec.xml") assert ctx.spec.source.archiveType == "zip" @@ -65,7 +65,7 @@ class ArchiveFileTestCase(unittest.TestCase): def testMakeZip(self): # first unpack our dear sandbox.zip - ctx = context.BuildContext("tests/sandbox/sandbox.pspec") + ctx = context.BuildContext("tests/sandbox/pspec.xml") targetDir = ctx.pkg_work_dir() achv = sourcearchive.SourceArchive(ctx) achv.fetch(interactive=False) @@ -82,7 +82,7 @@ class ArchiveFileTestCase(unittest.TestCase): def testUnpackZipCond(self): - ctx = context.BuildContext("tests/sandbox/sandbox.pspec") + ctx = context.BuildContext("tests/sandbox/pspec.xml") url = purl.PUrl(ctx.spec.source.archiveUri) targetDir = ctx.pkg_work_dir() filePath = join(ctx.archives_dir(), url.filename()) diff --git a/tests/fetchertests.py b/tests/fetchertests.py index fe07b2b0..1a797b6b 100644 --- a/tests/fetchertests.py +++ b/tests/fetchertests.py @@ -10,7 +10,7 @@ from pisi import purl class FetcherTestCase(unittest.TestCase): def setUp(self): - self.ctx = context.BuildContext("samples/popt/popt.pspec") + self.ctx = context.BuildContext("samples/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) diff --git a/tests/packagedbtests.py b/tests/packagedbtests.py index fad3d506..7d4cbebc 100644 --- a/tests/packagedbtests.py +++ b/tests/packagedbtests.py @@ -9,7 +9,7 @@ from pisi import context class PackageDBTestCase(unittest.TestCase): def setUp(self): - self.ctx = context.BuildContext('samples/popt/popt.pspec') + self.ctx = context.BuildContext('samples/popt/pspec.xml') def testAdd(self): packagedb.add_package(self.ctx.spec.packages[0]) diff --git a/tests/sourcedbtests.py b/tests/sourcedbtests.py index 6fc0fe67..f35321aa 100644 --- a/tests/sourcedbtests.py +++ b/tests/sourcedbtests.py @@ -9,7 +9,7 @@ from pisi import context class SourceDBTestCase(unittest.TestCase): def setUp(self): - self.ctx = context.BuildContext("samples/popt/popt.pspec") + self.ctx = context.BuildContext("samples/popt/pspec.xml") def testAdd(self): sourcedb.add_source(self.ctx.spec.source) diff --git a/tests/specfiletests.py b/tests/specfiletests.py index 134316fd..93e8460f 100644 --- a/tests/specfiletests.py +++ b/tests/specfiletests.py @@ -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/popt.pspec") + self.spec.read("samples/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/popt.pspec") - self.spec.write(os.path.join(config.tmp_dir(), 'popt-copy.pspec')) + self.spec.read("samples/popt/pspec.xml") + self.spec.write(os.path.join(config.tmp_dir(), 'popt-copy.pspec.xml')) suite = unittest.makeSuite(SpecFileTestCase)