Commit 74d1fbd0 authored by Jérome Perrin's avatar Jérome Perrin

test_core: make erp5_test/test_file a text/plain

so that we can view in inline with firefox for Zelenium tests

This was applied manually on http://www.erp5.org/dists/snapshot/test_bt5
parent f04d2c0f
......@@ -375,7 +375,7 @@ class TestTemplateTool(ERP5TypeTestCase):
available_bt, = template_tool.getRepositoryBusinessTemplateList(
template_list=('test_core',))
revision = available_bt.getRevision()
self.assertEqual('+Kds1k1J41hzO4yIO+GcKQukNps=', revision)
self.assertEqual('5ZbANrCwilXfbh7VsuxxSzBfhug=', revision)
installed_bt = template_tool.download("%s/%s" % (available_bt.repository,
available_bt.filename))
self.assertEqual(revision, installed_bt.getRevision())
......@@ -398,14 +398,14 @@ class TestTemplateTool(ERP5TypeTestCase):
# ... at building by default ...
bt.build()
revision = bt.getRevision()
self.assertEqual('xR/n0PtLoc+1CR0AyJ+xGjbxsjE=', revision)
self.assertEqual('pNreLP/zxXDyCwTIdYLLQpkyVvg=', revision)
self.portal.portal_skins.erp5_test.manage_renameObject('test_file',
'test_file2')
bt.build(update_revision=False)
self.assertEqual(revision, bt.getRevision())
# ... and at export.
bt.export(str(random.random()))
self.assertEqual('fnLZVdsjkNDoC0JWstMY2XL1x+s=', bt.getRevision())
self.assertEqual('JYln8+vTRjM3/6Bz8KOblUi6F0s=', bt.getRevision())
self.abort()
def test_getInstalledBusinessTemplateList(self):
......
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/x-unknown-content-type</string> </value>
<value> <string>text/plain</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
......
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