build test.

Builder constructor değişmiş.
Environment her seferinde sıfırlanıyor.
This commit is contained in:
Faik Uygur
2006-07-03 06:35:14 +00:00
parent a6fd2cf1ed
commit bf7f8518f7
+4 -3
View File
@@ -34,7 +34,7 @@ class BuildTestCase(testcase.TestCase):
def testBasicBuild(self): def testBasicBuild(self):
shutil.copy('tests/buildtests/a/actions.py-1', 'tests/buildtests/a/actions.py') shutil.copy('tests/buildtests/a/actions.py-1', 'tests/buildtests/a/actions.py')
pspec = 'tests/buildtests/a/pspec.xml' pspec = 'tests/buildtests/a/pspec.xml'
pb = Builder(pspec, None) pb = Builder(pspec)
pb.build() pb.build()
self.assert_(os.path.exists('tmp/a-1.0-1-1.pisi')) self.assert_(os.path.exists('tmp/a-1.0-1-1.pisi'))
@@ -44,10 +44,11 @@ class BuildTestCase(testcase.TestCase):
pspec = 'tests/buildtests/a/pspec.xml' pspec = 'tests/buildtests/a/pspec.xml'
shutil.copy('tests/buildtests/a/actions.py-2', 'tests/buildtests/a/actions.py') shutil.copy('tests/buildtests/a/actions.py-2', 'tests/buildtests/a/actions.py')
pb = Builder(pspec, None) pb = Builder(pspec)
pb.build() pb.build()
self.assert_(os.path.exists('tmp/a-1.0-1-2.pisi')) self.assert_(os.path.exists('tmp/a-1.0-1-2.pisi'))
pb = Builder(pspec)
pb.build() pb.build()
# because nothing is changed # because nothing is changed
self.assert_(not os.path.exists('tmp/a-1.0-1-3.pisi')) self.assert_(not os.path.exists('tmp/a-1.0-1-3.pisi'))