remove unicode from code

In Python 3, all strings are represented in Unicode.In Python 2 are
stored internally as 8-bit ASCII, hence it is required to attach 'u'
to make it Unicode. It is no longer necessary now.'

Change-Id: Ie3a439f0113423771bee7fb36b353df0ed68892e
This commit is contained in:
wu.shiming 2021-03-04 11:08:07 +08:00 committed by Ivan Anfimov
parent 46421e9717
commit ceb30381d4
2 changed files with 5 additions and 5 deletions

View File

@ -23,10 +23,10 @@ from mistral.tests.unit.api import base
WORKBOOKS = [
{
u'name': u'my_workbook',
u'description': u'My cool Mistral workbook',
u'scope': None,
u'tags': [u'deployment', u'demo']
'name': 'my_workbook',
'description': 'My cool Mistral workbook',
'scope': None,
'tags': ['deployment', 'demo']
}
]

View File

@ -160,7 +160,7 @@ class RunActionEngineTest(base.EngineTestCase):
action_ex = db_api.get_action_execution(action_ex.id)
self.assertEqual(states.SUCCESS, action_ex.state)
self.assertEqual({'result': u'Hello, John Doe!'}, action_ex.output)
self.assertEqual({'result': 'Hello, John Doe!'}, action_ex.output)
action_ex = self.engine.start_action(
'concat2',