@@ -21,7 +21,7 @@ def test_config_path_macos(self, mock_platform):
2121 mock_platform .return_value = "macos"
2222 installer = ClaudeDesktopInstaller ()
2323 path = installer .get_config_path ()
24- assert "Library/Application Support/Claude" in str ( path )
24+ assert "Library/Application Support/Claude" in path . as_posix ( )
2525 assert path .name == "claude_desktop_config.json"
2626
2727 @patch ("napari_mcp.cli.install.claude_desktop.get_platform" )
@@ -40,7 +40,7 @@ def test_config_path_linux(self, mock_platform):
4040 mock_platform .return_value = "linux"
4141 installer = ClaudeDesktopInstaller ()
4242 path = installer .get_config_path ()
43- assert ".config/Claude" in str ( path )
43+ assert ".config/Claude" in path . as_posix ( )
4444 assert path .name == "claude_desktop_config.json"
4545
4646 def test_no_extra_config (self ):
@@ -72,14 +72,14 @@ def test_global_config_path(self):
7272 """Test global Cursor configuration path."""
7373 installer = CursorInstaller (global_install = True )
7474 path = installer .get_config_path ()
75- assert ".cursor/mcp.json" in str ( path )
75+ assert ".cursor/mcp.json" in path . as_posix ( )
7676
7777 def test_project_config_path (self ):
7878 """Test project-specific configuration path."""
7979 with patch ("napari_mcp.cli.install.cursor.Confirm.ask" , return_value = True ):
8080 installer = CursorInstaller (project_dir = "/my/project" )
8181 path = installer .get_config_path ()
82- assert "/my/project" in str ( path )
82+ assert "/my/project" in path . as_posix ( )
8383 assert "mcp.json" in str (path )
8484
8585 def test_default_project_config (self ):
@@ -104,7 +104,7 @@ def test_cline_vscode_path_macos(self, mock_platform):
104104 mock_platform .return_value = "macos"
105105 installer = ClineVSCodeInstaller ()
106106 path = installer .get_config_path ()
107- assert "Application Support/Code/User/globalStorage" in str ( path )
107+ assert "Application Support/Code/User/globalStorage" in path . as_posix ( )
108108 assert "saoudrizwan.claude-dev" in str (path )
109109 assert path .name == "cline_mcp_settings.json"
110110
@@ -131,7 +131,7 @@ def test_cline_cursor_path_macos(self, mock_platform):
131131 mock_platform .return_value = "macos"
132132 installer = ClineCursorInstaller ()
133133 path = installer .get_config_path ()
134- assert "Application Support/Cursor/User/globalStorage" in str ( path )
134+ assert "Application Support/Cursor/User/globalStorage" in path . as_posix ( )
135135 assert "saoudrizwan.claude-dev" in str (path )
136136
137137 def test_cline_extra_config (self ):
@@ -153,14 +153,14 @@ def test_global_config_path(self):
153153 """Test global Gemini configuration."""
154154 installer = GeminiCLIInstaller (global_install = True )
155155 path = installer .get_config_path ()
156- assert ".gemini/settings.json" in str ( path )
156+ assert ".gemini/settings.json" in path . as_posix ( )
157157
158158 def test_project_config_path (self ):
159159 """Test project-specific Gemini configuration."""
160160 with patch ("napari_mcp.cli.install.gemini_cli.Confirm.ask" , return_value = True ):
161161 installer = GeminiCLIInstaller (project_dir = "/my/project" )
162162 path = installer .get_config_path ()
163- assert "/my/project" in str ( path )
163+ assert "/my/project" in path . as_posix ( )
164164 assert "settings.json" in str (path )
165165
166166 def test_default_project_config (self ):
@@ -186,7 +186,7 @@ def test_config_path(self):
186186 """Test Codex configuration path."""
187187 installer = CodexCLIInstaller ()
188188 path = installer .get_config_path ()
189- assert ".codex/config.toml" in str ( path )
189+ assert ".codex/config.toml" in path . as_posix ( )
190190 assert path .suffix == ".toml"
191191
192192 def test_no_extra_config (self ):
@@ -259,14 +259,14 @@ def test_cursor_installer_path_expansion(self):
259259 with patch ("napari_mcp.cli.install.cursor.Confirm.ask" , return_value = True ):
260260 installer = CursorInstaller (project_dir = "/home/test/myproject" )
261261 path = installer .get_config_path ()
262- assert "/home/test/myproject" in str ( path )
262+ assert "/home/test/myproject" in path . as_posix ( )
263263
264264 def test_gemini_installer_path_expansion (self ):
265265 """Test Gemini installer expands paths correctly."""
266266 with patch ("napari_mcp.cli.install.gemini_cli.Confirm.ask" , return_value = True ):
267267 installer = GeminiCLIInstaller (project_dir = "/home/test/myproject" )
268268 path = installer .get_config_path ()
269- assert "/home/test/myproject" in str ( path )
269+ assert "/home/test/myproject" in path . as_posix ( )
270270
271271 @patch ("napari_mcp.cli.install.utils.get_platform" )
272272 def test_platform_specific_paths_all_platforms (self , mock_platform ):
0 commit comments