Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

xfail when github token is not set (#1123)

Jeremiah Lowince1a85ceaf2c
diff --git a/tests/integration_tests/test_github_mcp_remote.py b/tests/integration_tests/test_github_mcp_remote.py
index 99ee869fb..dedb34bc5 100644
--- a/tests/integration_tests/test_github_mcp_remote.py
+++ b/tests/integration_tests/test_github_mcp_remote.py
@@ -16,8 +16,8 @@ FASTMCP_GITHUB_TOKEN = os.getenv("FASTMCP_GITHUB_TOKEN")
# Skip tests if no GitHub token is available
pytestmark = pytest.mark.xfail(
- FASTMCP_GITHUB_TOKEN is None,
- reason="The FASTMCP_GITHUB_TOKEN environment variable is not set",
+ not FASTMCP_GITHUB_TOKEN,
+ reason="The FASTMCP_GITHUB_TOKEN environment variable is not set or empty",
)