From 7b90ea4cb5c6ae9d8fc329c242a21eba5fba0ef7 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:51:12 -0400 Subject: [PATCH] Ensure test is platform agnostic --- tests/cli/test_cli.py | 4 +--- tests/cli/test_cursor.py | 2 -- tests/cli/test_install.py | 2 -- tests/cli/test_run.py | 2 -- tests/cli/test_shared.py | 2 -- 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.py index 9a6c7f8f3..bb7c0304a 100644 --- a/tests/cli/test_cli.py +++ b/tests/cli/test_cli.py @@ -1,5 +1,3 @@ -"""Tests for the main CLI functionality.""" - import subprocess from pathlib import Path from unittest.mock import Mock, patch @@ -52,7 +50,7 @@ class TestMainCLI: "--with", "fastmcp", "--with-editable", - "/path/to/package", + str(editable_path), "fastmcp", "run", "server.py", diff --git a/tests/cli/test_cursor.py b/tests/cli/test_cursor.py index 415a851e5..5f3820b9d 100644 --- a/tests/cli/test_cursor.py +++ b/tests/cli/test_cursor.py @@ -1,5 +1,3 @@ -"""Tests for Cursor integration functionality.""" - import base64 import json from pathlib import Path diff --git a/tests/cli/test_install.py b/tests/cli/test_install.py index ece867c3a..55fe056d9 100644 --- a/tests/cli/test_install.py +++ b/tests/cli/test_install.py @@ -1,5 +1,3 @@ -"""Tests for the install subcommands.""" - from fastmcp.cli.install import install_app diff --git a/tests/cli/test_run.py b/tests/cli/test_run.py index 1a2032b4f..7a685ce09 100644 --- a/tests/cli/test_run.py +++ b/tests/cli/test_run.py @@ -1,5 +1,3 @@ -"""Tests for the run module functionality.""" - import pytest from fastmcp.cli.run import ( diff --git a/tests/cli/test_shared.py b/tests/cli/test_shared.py index 01d67b966..b01ad2cfd 100644 --- a/tests/cli/test_shared.py +++ b/tests/cli/test_shared.py @@ -1,5 +1,3 @@ -"""Tests for shared CLI functionality.""" - from fastmcp.cli.cli import _parse_env_var