I want to mock and patch for url_for method in HTML.
url_for
<link href="{{ url_for('static', filename='some.css') }}">
How can I mock patch for html? I tried to mock but cannot.
@mock.patch('templates.myhtml.url_for', return_value='/') ...
Aucun commentaire:
Enregistrer un commentaire