From ce1a85ceaf2cf54898e2db485dcb1c6d59dd7265 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Fri, 11 Jul 2025 12:55:45 -0400 Subject: [PATCH] xfail when github token is not set (#1123) --- tests/integration_tests/test_github_mcp_remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", )