Jeremiah Lowin commited on
Commit
d26a0ac
·
1 Parent(s): b476cc6

Ensure test is platform agnostic

Browse files
tests/cli/test_cli.py CHANGED
@@ -1,5 +1,3 @@
1
- """Tests for the main CLI functionality."""
2
-
3
  import subprocess
4
  from pathlib import Path
5
  from unittest.mock import Mock, patch
@@ -52,7 +50,7 @@ class TestMainCLI:
52
  "--with",
53
  "fastmcp",
54
  "--with-editable",
55
- "/path/to/package",
56
  "fastmcp",
57
  "run",
58
  "server.py",
 
 
 
1
  import subprocess
2
  from pathlib import Path
3
  from unittest.mock import Mock, patch
 
50
  "--with",
51
  "fastmcp",
52
  "--with-editable",
53
+ str(editable_path),
54
  "fastmcp",
55
  "run",
56
  "server.py",
tests/cli/test_cursor.py CHANGED
@@ -1,5 +1,3 @@
1
- """Tests for Cursor integration functionality."""
2
-
3
  import base64
4
  import json
5
  from pathlib import Path
 
 
 
1
  import base64
2
  import json
3
  from pathlib import Path
tests/cli/test_install.py CHANGED
@@ -1,5 +1,3 @@
1
- """Tests for the install subcommands."""
2
-
3
  from fastmcp.cli.install import install_app
4
 
5
 
 
 
 
1
  from fastmcp.cli.install import install_app
2
 
3
 
tests/cli/test_run.py CHANGED
@@ -1,5 +1,3 @@
1
- """Tests for the run module functionality."""
2
-
3
  import pytest
4
 
5
  from fastmcp.cli.run import (
 
 
 
1
  import pytest
2
 
3
  from fastmcp.cli.run import (
tests/cli/test_shared.py CHANGED
@@ -1,5 +1,3 @@
1
- """Tests for shared CLI functionality."""
2
-
3
  from fastmcp.cli.cli import _parse_env_var
4
 
5
 
 
 
 
1
  from fastmcp.cli.cli import _parse_env_var
2
 
3