tests: adapt to changes in generated javascript in search cell (#18921)

This commit is contained in:
Frédéric Péters 2019-04-15 20:29:12 +02:00
parent 83d37967eb
commit a8b430eb35
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ def test_search_cell(app):
cell.slug = 'var-name'
context = {'request': RequestFactory().get('/?q_var_name=searchme')}
resp = cell.render(context)
assert "combo_search_input_%s.val('searchme');" % cell.pk in resp
assert "$input.val('searchme');" in resp
with mock.patch('combo.apps.search.models.requests.get') as requests_get: