test: skip non-ASCII description test on Windows

Windows console cannot encode non-ASCII characters (Chinese characters,
emoji, etc.) due to charmap codec limitations. Skip
test_rename_with_non_ascii_description on Windows to prevent CI failures.

Fixes: test_rename_with_non_ascii_description failure on Windows CI
This commit is contained in:
StillKnotKnown
2026-02-09 12:31:13 +02:00
parent fe8933668a
commit e8bd743920
@@ -7,6 +7,7 @@ Tests for utility functions, models, and helper functions in the spec pipeline.
import json
import os
import shutil
import sys
from datetime import datetime, timedelta
from pathlib import Path
from unittest.mock import patch, MagicMock, PropertyMock
@@ -1074,6 +1075,10 @@ class TestRenameSpecDirFromRequirementsEdgeCases:
assert result is True
assert spec_dir.exists()
@pytest.mark.skipif(
sys.platform == "win32",
reason="Windows console cannot encode non-ASCII characters (Chinese, emoji, etc.) due to charmap codec limitations"
)
def test_rename_with_non_ascii_description(self, tmp_path):
"""Test rename with non-ASCII characters in description."""
specs_dir = tmp_path / "specs"