Add mistral/tests/unit/expressions/__init__.py

This patchset adds the __init__.py file to mistral/tests/unit/expressions
to enable those tests to run, and updates the Jinja tests to include
the created_at attribute.

Closes-Bug: 1716452

Change-Id: I5c7af1cd4a2777764a2a46adf85129e4cb90e4d8
This commit is contained in:
Bob Haddleton 2017-09-11 14:02:22 -05:00
parent 10b27fcdea
commit 4dbacfe1a1
2 changed files with 4 additions and 2 deletions

View File

@ -301,7 +301,8 @@ class JinjaEvaluatorTest(base.BaseTest):
'name': wf_ex.name,
'spec': wf_ex.spec,
'input': wf_ex.input,
'params': wf_ex.params
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' ')
}, result)
@mock.patch('mistral.db.v2.api.get_workflow_execution')
@ -321,7 +322,8 @@ class JinjaEvaluatorTest(base.BaseTest):
'name': wf_ex.name,
'spec': wf_ex.spec,
'input': wf_ex.input,
'params': wf_ex.params
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' ')
}, result)