diff --git a/readthedocs/rtd_tests/tests/test_project.py b/readthedocs/rtd_tests/tests/test_project.py index 38e7943634d..ab12b1267f5 100644 --- a/readthedocs/rtd_tests/tests/test_project.py +++ b/readthedocs/rtd_tests/tests/test_project.py @@ -139,7 +139,11 @@ def test_multiple_conf_file_one_doc_in_path(self, find_method): '/home/docs/rtfd/code/readthedocs.org/user_builds/pip/checkouts/latest/docs/conf.py', ) - def test_conf_file_not_found(self): + @patch('readthedocs.projects.models.Project.find') + @patch('readthedocs.projects.models.Project.full_find') + def test_conf_file_not_found(self, find_method, full_find_method): + find_method.return_value = [] + full_find_method.return_value = [] with self.assertRaisesMessage( ProjectConfigurationError, ProjectConfigurationError.NOT_FOUND) as cm: