0001-tests-fix-backoffice_info_test-assertion-in-case-of-.patch
tests/test_admin_pages.py | ||
---|---|---|
1206 | 1206 |
assert 'baz' in resp.body |
1207 | 1207 | |
1208 | 1208 |
def test_workflows_edit_status(pub): |
1209 |
create_superuser(pub) |
|
1209 | 1210 |
Workflow.wipe() |
1210 | 1211 |
workflow = Workflow(name='foo') |
1211 | 1212 |
workflow.add_status(name='baz') |
... | ... | |
1250 | 1251 |
resp = resp.forms[0].submit() |
1251 | 1252 |
assert resp.location == 'http://example.net/backoffice/workflows/1/status/1/' |
1252 | 1253 |
resp = resp.follow() |
1253 |
assert Workflow.get(1).possible_status[0].backoffice_info_text == '<p>Hello</p>'
|
|
1254 |
assert 'Hello' in Workflow.get(1).possible_status[0].backoffice_info_text
|
|
1254 | 1255 | |
1255 | 1256 |
def test_workflows_delete(pub): |
1256 | 1257 |
Workflow.wipe() |
1257 |
- |