From 0183b4bc05d21c5ec7e56ade0fbc86dd56ea7da6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 16 2017 09:23:52 +0000 Subject: Use the proper PagureEncodingException exception in the tests --- 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)