diff --git a/webtest/response.py b/webtest/response.py index 8498339..98609b5 100644 --- a/webtest/response.py +++ b/webtest/response.py @@ -1,3 +1,4 @@ +from functools import cached_property import re from webtest import forms @@ -385,7 +386,7 @@ def __repr__(self): location = '' return ('<' + self.status + ct + location + body + '>') - @property + @cached_property def html(self): """ Returns the response as a `BeautifulSoup