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