def test_delete_user_skill_ok_response(self, mock_user_skill_repo_update,
                                           mock_user_skill_repo_get):
        """Test delete_user_skill when the role is invalid."""
        # Arrange
        with self.app.app_context():
            mock_user_skill_repo_get.return_value = self.mock_user_skill
            mock_user_skill_repo_update.return_value = self.mock_user_skill
            user_skill_controller = UserSkillController(self.request_context)

            # Act
            result = user_skill_controller.delete_user_skill(1)

            # Assert
            assert result.status_code == 200
            assert result.get_json()["msg"] == "user skill deleted"
    def test_delete_user_skill_when_user_skill_is_invalid(
            self, mock_user_skill_repo_get):
        """Test delete_user_skill when the role is invalid."""
        # Arrange
        with self.app.app_context():
            mock_user_skill_repo_get.return_value = None
            user_skill_controller = UserSkillController(self.request_context)

            # Act
            result = user_skill_controller.delete_user_skill(1)

            # Assert
            assert result.status_code == 404
            assert (result.get_json()["msg"] == "Invalid or incorrect "
                    "user_skill_id provided")