xfail when github token is not set (#1123)

This commit is contained in:
Jeremiah Lowin 2025-07-11 12:55:45 -04:00 committed by GitHub
commit ce1a85ceaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",
)