diff --git a/tests/test_pagure_flask_docs.py b/tests/test_pagure_flask_docs.py index 297f566..d5e1731 100644 --- a/tests/test_pagure_flask_docs.py +++ b/tests/test_pagure_flask_docs.py @@ -196,7 +196,7 @@ class PagureFlaskDocstests(tests.Modeltests): @mock.patch( 'pagure.lib.encoding_utils.decode', - mock.MagicMock(side_effect=pagure.exceptions.PagureException)) + mock.MagicMock(side_effect=pagure.exceptions.PagureEncodingException)) def test_view_docs_encoding_error(self): """ Test viewing a file of which we cannot find the encoding. """ tests.create_projects(self.session)