diff --git a/tests/test_windows_encoding.py b/tests/test_windows_encoding.py deleted file mode 100644 index 35830ee8..00000000 --- a/tests/test_windows_encoding.py +++ /dev/null @@ -1,38 +0,0 @@ -""" -Test Windows encoding configuration for subprocess calls. - -This test verifies that the encoding fixes applied to entry point scripts -work correctly on Windows. -""" - -import json -import subprocess -import sys -from pathlib import Path - -import pytest - -SCRIPT_PATH = Path(__file__).parent.parent.parent / "apps" / "backend" - - -@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific test") -def test_validate_spec_unicode_output(tmp_path): - """Test that validate_spec.py handles Unicode characters on Windows.""" - spec_dir = tmp_path / "spec" - spec_dir.mkdir() - - # Create a spec with Unicode content - (spec_dir / "project_index.json").write_text('{"project_type": "test"}', encoding="utf-8") - - # Run validate_spec.py via subprocess - result = subprocess.run( - [sys.executable, str(SCRIPT_PATH / "spec" / "validate_spec.py"), "--spec-dir", str(spec_dir)], - capture_output=True, - text=True, - encoding="utf-8", - errors="replace", - cwd=str(SCRIPT_PATH), - ) - - # Should succeed without encoding errors - assert result.returncode == 0