"""Tests for exception handler. Test endpoint: GET /hello/ """ from unittest.mock import patch @patch('backend.handlers.base_handlers.jsonify', side_effect=Exception()) def test_exception_handler(mock_jsonify, client): """Test an uncaught Exception results in a 500 status code.""" result = client.get('/hello/') assert result.status_code == 500