mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-01 18:52:21 +01:00
fix(tests): read static sources as UTF-8 in the static assertion tests (#6850)
On native Windows the default text encoding is the ANSI code page (cp1252 on en/pt systems), so the module-level read_text() calls in eight static tests fail at collection with UnicodeDecodeError on bytes 0x81/0x90 that appear in static/js/chat.js, chatRenderer.js, app.js, index.html and src/visual_report.py. Pass encoding="utf-8" like the other 700+ tests in the suite already do. Found by running the suite natively on Windows 11 (Python 3.11). Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Alexandre Teixeira <general@alexandreteixeira.dev>
This commit is contained in:
co-authored by
Claude Fable 5.1
Alexandre Teixeira
parent
ef3467e8d4
commit
64b457dc0a
@@ -5,7 +5,7 @@ from bs4 import BeautifulSoup
|
||||
from src.visual_report import generate_visual_report
|
||||
|
||||
|
||||
SOURCE = (Path(__file__).resolve().parents[1] / "src/visual_report.py").read_text()
|
||||
SOURCE = (Path(__file__).resolve().parents[1] / "src/visual_report.py").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_export_bookmark_is_anchored_and_expands_on_demand():
|
||||
|
||||
Reference in New Issue
Block a user