Commit 67ef82f1 authored by Jérome Perrin's avatar Jérome Perrin

Base_getZODBHistoryList: add a space between "key:" and "value"

this makes it easier to select the value by copy and paste.
Without the space, when double clicking on "value" in "key:value",
all "key:value" gets selected, with the space, only "value" gets
selected.
parent 26390e40
Pipeline #25041 passed with stage
...@@ -139,7 +139,7 @@ class TestZODBHistory(ERP5TypeTestCase): ...@@ -139,7 +139,7 @@ class TestZODBHistory(ERP5TypeTestCase):
document.edit(title='ネクセディ', default_address_city='千代田区') document.edit(title='ネクセディ', default_address_city='千代田区')
self.commit() self.commit()
_, change, = document.Base_getZODBHistoryList() _, change, = document.Base_getZODBHistoryList()
self.assertIn('title:ネクセディ', change.getProperty('changes')) self.assertIn('title: ネクセディ', change.getProperty('changes'))
# no encoding error # no encoding error
document.Base_viewZODBHistory() document.Base_viewZODBHistory()
...@@ -166,9 +166,9 @@ class TestZODBHistory(ERP5TypeTestCase): ...@@ -166,9 +166,9 @@ class TestZODBHistory(ERP5TypeTestCase):
document.Base_viewZODBHistory() document.Base_viewZODBHistory()
change, = document.Base_getZODBHistoryList() change, = document.Base_getZODBHistoryList()
self.assertIn('data:(binary)', change.getProperty('changes')) self.assertIn('data: (binary)', change.getProperty('changes'))
self.assertIn('content_type:image/png', change.getProperty('changes')) self.assertIn('content_type: image/png', change.getProperty('changes'))
self.assertIn('title:ロゴ', change.getProperty('changes')) self.assertIn('title: ロゴ', change.getProperty('changes'))
def test_suite(): def test_suite():
......
...@@ -786,7 +786,7 @@ class TestUpgrader(ERP5TypeTestCase): ...@@ -786,7 +786,7 @@ class TestUpgrader(ERP5TypeTestCase):
def stepCheckPersonTitleHistory(self, sequence=None): def stepCheckPersonTitleHistory(self, sequence=None):
self.assertEqual( self.assertEqual(
[x.changes for x in self.portal.person_module['1'].Base_getZODBHistoryList()[-3:]], [x.changes for x in self.portal.person_module['1'].Base_getZODBHistoryList()[-3:]],
[('title:M. pre_upgrade',), ('title:M. upgrader',), ('title:M. post_upgrade',)]) [('title: M. pre_upgrade',), ('title: M. upgrader',), ('title: M. post_upgrade',)])
def test_upgrade_activities_are_run_sequentially(self): def test_upgrade_activities_are_run_sequentially(self):
""" """
......
...@@ -16,7 +16,7 @@ def beautifyChange(change_dict): ...@@ -16,7 +16,7 @@ def beautifyChange(change_dict):
six.text_type(property_value, 'utf-8') six.text_type(property_value, 'utf-8')
except UnicodeDecodeError: except UnicodeDecodeError:
property_value = '(binary)' property_value = '(binary)'
change_list.append('{}:{}'.format(property_name, property_value)) change_list.append('{}: {}'.format(property_name, property_value))
return change_list return change_list
try: try:
......
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