@@ -183,6 +183,7 @@ def app_file(self, tmp_path: Path):
183183 app_file .write_text (app_content )
184184 return app_file
185185
186+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Unix-specific test" )
186187 def test_unix_absolute_path (self , app_file : Path ):
187188 """Test Unix-style absolute paths (e.g., /home/user/app.py)."""
188189 app = import_app (str (app_file ), "app" , False )
@@ -282,14 +283,14 @@ def test_custom_app_name(self, tmp_path: Path):
282283
283284 @pytest .mark .skipif (sys .platform != "win32" , reason = "Windows-specific test" )
284285 def test_windows_absolute_path (self , app_file : Path ):
285- """Test Windows-style absolute paths (e.g., C: \\ Users \\ app.py). """
286+ """Test Windows-style absolute paths"""
286287 # On Windows, tmp_path will have a drive letter (e.g., C:\...)
287288 app = import_app (str (app_file ), "app" , False )
288289 assert isinstance (app , FastAPI )
289290
290291 @pytest .mark .skipif (sys .platform != "win32" , reason = "Windows-specific test" )
291292 def test_windows_path_with_colon_notation (self , app_file : Path ):
292- """Test Windows path with colon notation (e.g., C: \\ path \\ app.py:myapp) ."""
293+ """Test Windows path with colon notation."""
293294 # Windows path with colon notation: C:\path\app.py:app
294295 app = import_app (f"{ app_file } :app" , "app" , False )
295296 assert isinstance (app , FastAPI )
@@ -298,6 +299,7 @@ def test_windows_path_with_colon_notation(self, app_file: Path):
298299class TestPathDetectionHelpers :
299300 """Test path detection logic for cross-platform compatibility."""
300301
302+ @pytest .mark .skipif (sys .platform == "win32" , reason = "Unix-specific test" )
301303 def test_is_absolute_path_detection_unix (self ):
302304 """Test absolute path detection for Unix paths."""
303305 # Unix absolute paths
0 commit comments