tests: adapt search test to minor markup change
This commit is contained in:
parent
abbdf60cd8
commit
bc655df423
|
@ -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>'}]
|
||||
|
|
Loading…
Reference in New Issue