Test: Implement complete unit test suites for frontend and backend, fix Windows encoding crash
6012c2e Download tests/__init__.py from SatVision/App: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/spaces/SatVision/App/resolve/main/tests/__init__.py
- Command line
-
hf download hf://spaces/SatVision/App/tests/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/SatVision/App/resolve/main/tests/__init__.py
391 Bytes
| import sys | |
| # Ensure console output uses UTF-8 on Windows to prevent UnicodeEncodeErrors during piped test runs | |
| if sys.platform.startswith('win'): | |
| try: | |
| if hasattr(sys.stdout, 'reconfigure'): | |
| sys.stdout.reconfigure(encoding='utf-8') | |
| if hasattr(sys.stderr, 'reconfigure'): | |
| sys.stderr.reconfigure(encoding='utf-8') | |
| except Exception: | |
| pass | |