"""
Test script to verify config fix.
"""

from core.config import Config, get_config

def test_config_fix():
    """Test the config fix directly."""
    print("Testing config fix...")
    
    # Create a fresh config instance
    config = Config()
    
    print(f"Raw server_port value: {config.get('server_port')}")
    print(f"get_int server_port: {config.get_int('server_port', 8000)}")
    
    # Test with global instance
    global_config = get_config()
    print(f"Global config server_port: {global_config.get('server_port')}")
    print(f"Global config get_int: {global_config.get_int('server_port', 8000)}")

if __name__ == "__main__":
    test_config_fix()