build test.
Builder constructor değişmiş. Environment her seferinde sıfırlanıyor.
This commit is contained in:
+4
-3
@@ -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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user