Files
nginx-proxy-manager-mcp/tests/test_server.py
T
i/o agentandb3nw 725d323b96 fix(mcp): resolve AttributeError: FastMCP has no attribute streamable_http_app (#16)
* fix(mcp): resolve AttributeError: FastMCP has no attribute streamable_http_app

* chore(release): bump version to 0.0.6

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-12 14:54:23 -04:00

16 lines
478 B
Python

"""Tests for the server module and its FastMCP initialization."""
import pytest
def test_server_imports():
"""Ensure that the server and mcp instance can be imported without errors."""
from npm_mcp.server import mcp
assert mcp is not None
assert mcp.name == "npm-mcp"
def test_server_http_app():
"""Ensure that the http_app can be retrieved without AttributeError."""
from npm_mcp.server import mcp
app = mcp.http_app()
assert app is not None