Project

General

Profile

0001-tests-fix-backoffice_info_test-assertion-in-case-of-.patch

Frédéric Péters, 03 November 2015 02:39 PM

Download (1.19 KB)

View differences:

Subject: [PATCH 1/2] tests: fix backoffice_info_test assertion in case of
 missing feedparser (#8848)

 tests/test_admin_pages.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
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
-