tests: adapt search test to minor markup change

This commit is contained in:
Frédéric Péters 2017-03-13 09:50:29 +01:00
parent abbdf60cd8
commit bc655df423
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def test_search_cell(app):
response['data'] = [{'url': 'http://test', 'text': 'barbarbar'}]
resp = client.get('/ajax/search/%s/?q=foo' % cell.pk, status=200)
assert resp.content.count('<li>') == 1
assert '<li><a href="http://test">barbarbar</a></li>' in resp.content
assert '<li><a href="http://test">barbarbar</a>' in resp.content
response['data'] = [{'url': 'http://test', 'text': 'barbarbar',
'description': 'this is <b>html</b>'}]