--- /dev/null
+import json
+import pytest
+from flask import Flask
+from trainingmgr.schemas.problemdetail_schema import ProblemDetails
+
+@pytest.fixture
+def test_app():
+ """
+ Creates a Flask test app context for testing ProblemDetails JSON response.
+ """
+ app = Flask(__name__)
+ app.config['TESTING'] = True
+ return app.test_client()
+def test_problem_details_initialization():
+ """
+ Test that ProblemDetails initializes correctly with provided values.
+ """
+ problem = ProblemDetails(400, "Bad Request", "Invalid input data")
+ assert problem.status == 400
+ assert problem.title == "Bad Request"
+ assert problem.detail == "Invalid input data"
+
+# ==================================================================================
+#
+# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# ==================================================================================
+
from flask import jsonify
class ProblemDetails: