server_test.pyā¢1.11 kB
# Copyright 2025 Google LLC 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.
"""Test cases for the server module."""
import unittest
class TestUtils(unittest.TestCase):
"""Test cases for the server module."""
def test_server_initialization(self):
"""Tests that the MCP server instance is initialized.
This servers as a smoke test to confirm there are no obvious issues
with initialization, such as missing imports.
"""
from analytics_mcp import server
self.assertIsNotNone(server.mcp, "MCP server instance not initialized")