Commit 5d1fa522 authored by Georgios Dagkakis's avatar Georgios Dagkakis

testTemplateTool.test_revision: Change hard-coded hashes. test_core file...

testTemplateTool.test_revision: Change hard-coded hashes. test_core file structure has changed since SkinTemplateItem/portal_skins/erp5_test/test_file has been separated to two files
parent 76ecef89
...@@ -362,7 +362,7 @@ class TestTemplateTool(ERP5TypeTestCase): ...@@ -362,7 +362,7 @@ class TestTemplateTool(ERP5TypeTestCase):
available_bt, = template_tool.getRepositoryBusinessTemplateList( available_bt, = template_tool.getRepositoryBusinessTemplateList(
template_list=('test_core',)) template_list=('test_core',))
revision = available_bt.getRevision() revision = available_bt.getRevision()
self.assertEqual('PN8VPt52MbdHtxfjKvL+MBsNbzM=', revision) self.assertEqual('ZjtyN3qfJKXd8TjB7JPX/mG0FkE=', revision)
installed_bt = template_tool.download("%s/%s" % (available_bt.repository, installed_bt = template_tool.download("%s/%s" % (available_bt.repository,
available_bt.filename)) available_bt.filename))
self.assertEqual(revision, installed_bt.getRevision()) self.assertEqual(revision, installed_bt.getRevision())
...@@ -385,14 +385,14 @@ class TestTemplateTool(ERP5TypeTestCase): ...@@ -385,14 +385,14 @@ class TestTemplateTool(ERP5TypeTestCase):
# ... at building by default ... # ... at building by default ...
bt.build() bt.build()
revision = bt.getRevision() revision = bt.getRevision()
self.assertEqual('tPNr/gGXaa0fYCsFUWe8nqzSNLc=', revision) self.assertEqual('9rVhiz7Agr5G7L1jegm9yLuUD9U=', revision)
self.portal.portal_skins.erp5_test.manage_renameObject('test_file', self.portal.portal_skins.erp5_test.manage_renameObject('test_file',
'test_file2') 'test_file2')
bt.build(update_revision=False) bt.build(update_revision=False)
self.assertEqual(revision, bt.getRevision()) self.assertEqual(revision, bt.getRevision())
# ... and at export. # ... and at export.
bt.export(str(random.random())) bt.export(str(random.random()))
self.assertEqual('Nup/xsO1xpsmdJ5GTdknuVJyOr8=', bt.getRevision()) self.assertEqual('dhgvzCfmibJEiy5M+5axf9ZM3gA=', bt.getRevision())
self.abort() self.abort()
def test_getInstalledBusinessTemplateList(self): def test_getInstalledBusinessTemplateList(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment