mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
feat: add pytest configuration and implement tests for file and metadata extraction
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# conftest.py - pytest configuration
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Force UTF-8 encoding for all I/O operations
|
||||
os.environ['PYTHONIOENCODING'] = 'utf-8'
|
||||
if hasattr(sys.stdout, 'reconfigure'):
|
||||
sys.stdout.reconfigure(encoding='utf-8')
|
||||
if hasattr(sys.stderr, 'reconfigure'):
|
||||
sys.stderr.reconfigure(encoding='utf-8')
|
||||
|
||||
# Configure pytest to handle Unicode properly
|
||||
def pytest_configure(config):
|
||||
# Ensure UTF-8 encoding for test output
|
||||
config.option.capture = 'no' # Don't capture output to avoid encoding issues
|
||||
Reference in New Issue
Block a user