tests: complete tests on register comment action
This commit is contained in:
parent
34d84e9a0b
commit
e9a3d66c8d
|
@ -220,6 +220,9 @@ def test_register_comment():
|
|||
formdata.store()
|
||||
|
||||
item = RegisterCommenterWorkflowStatusItem()
|
||||
item.perform(formdata)
|
||||
assert formdata.evolution[-1].display_parts()[-1] == ''
|
||||
|
||||
item.comment = 'Hello world'
|
||||
item.perform(formdata)
|
||||
assert formdata.evolution[-1].display_parts()[-1] == '<p>Hello world</p>'
|
||||
|
@ -239,3 +242,7 @@ def test_register_comment():
|
|||
item.comment = '[foo]'
|
||||
item.perform(formdata)
|
||||
assert formdata.evolution[-1].display_parts()[-1] == '<p>1 < 3</p>'
|
||||
|
||||
item.comment = '<div>[foo]</div>'
|
||||
item.perform(formdata)
|
||||
assert formdata.evolution[-1].display_parts()[-1] == '<div>1 < 3</div>'
|
||||
|
|
Loading…
Reference in New Issue