There is no need to set return_value
@@ -156,7 +156,6 @@ class TestBuildTask(BuildEnvironmentBase):
'version': 2,
'formats': 'all',
})
- build_docs_html.return_value = True
# Make the version external
self.version.type = EXTERNAL
