Projet

Général

Profil

0004-tests-only-look-for-the-mimetype-in-response-body-10.patch

Benjamin Dauvergne, 30 mars 2016 18:50

Télécharger (1,01 ko)

Voir les différences:

Subject: [PATCH 4/6] tests: only look for the mimetype in response body
 (#10477)

List of extensions being random, we just verify that the mimetype is present
followed by the ( character.
 tests/test_admin_pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test_admin_pages.py
2528 2528
    resp = resp.forms[0].submit('submit')
2529 2529
    assert resp.location == 'http://example.net/backoffice/settings/filetypes/'
2530 2530
    resp = resp.follow()
2531
    assert 'application/msword (.doc)' in resp.body
2531
    assert 'application/msword (' in resp.body
2532 2532
    assert 'application/pdf' in pub.cfg['filetypes'][1]['mimetypes']
2533 2533

  
2534 2534
    resp.forms[0]['label'] = 'HTML files'
2535
-