tests: force string URL in widget tests (required for mechanize≥0.4.5)

This commit is contained in:
Frédéric Péters 2019-12-23 15:13:37 +01:00
parent 9f1d2fad29
commit 1ed06e1308
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class MockHtmlForm(object):
form = Form(method='post', use_tokens=False, enctype='application/x-www-form-urlencoded')
form.widgets.append(widget)
self.as_html = str(form.render())
response = mechanize._response.test_html_response(self.as_html, headers=[])
response = mechanize._response.test_html_response(self.as_html, headers=[], url='')
factory = mechanize.Browser()
factory.set_response(response)
self.factory = factory

View File

@ -22,7 +22,7 @@ deps =
pytest-cov
pytest-django
WebTest
mechanize!=0.4.5
mechanize
gadjo
pyquery
mock