#!/usr/bin/env python3
"""
Test script to verify config loading and basic functionality
"""
from login import EbayLogin

def test_config_loading():
    """Test if credentials are loaded correctly"""
    print("🔧 Testing configuration loading...")

    ebay = EbayLogin()
    email, password = ebay.load_credentials()

    if email and password:
        print(f"✅ Successfully loaded credentials for: {email}")
        print(f"✅ Password loaded (length: {len(password)} characters)")
        return True
    else:
        print("❌ Failed to load credentials")
        return False

if __name__ == "__main__":
    test_config_loading()
