fix encoding issue

This commit is contained in:
svlandeg 2025-10-20 15:27:49 +02:00
parent 12fc599179
commit 564722a111
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import os
import subprocess
import sys
from unittest.mock import patch
@ -20,6 +21,7 @@ def test_fastapi_cli():
],
capture_output=True,
encoding="utf-8",
env={**os.environ, "PYTHONIOENCODING": "utf-8"},
)
assert result.returncode == 1, result.stdout
assert "Path does not exist non_existent_file.py" in result.stdout