#!/usr/bin/env python
"""
Skript zum Generieren von Testdaten für die Excel-Filter-Tests
"""

import pandas as pd

# Testdaten erstellen
test_data = {
    'Name': ['Alice', 'Bob', 'Charlie', 'David', 'Eve', 'Frank', 'Grace', 'Hank'],
    'Status': ['Active', 'Inactive', 'Active', 'Inactive', 'Active', 'Inactive', 'Active', 'Inactive'],
    'Message': [
        'Hello World',
        'Error occurred',
        'Warning: Low disk space',
        'Critical failure',
        'System running normally',
        'Error: Database connection failed',
        'Warning: High CPU usage',
        'Info: System update available'
    ],
    'Value': [100, 200, 150, 50, 300, 120, 180, 90],
    'Description': [
        'Normal operation',
        'Error in module X',
        'Disk space warning',
        'Critical system error',
        'All systems operational',
        'Database error',
        'CPU warning',
        'Update information'
    ]
}

# DataFrame erstellen
df = pd.DataFrame(test_data)

# In Excel-Datei speichern
df.to_excel('tests/test_data.xlsx', index=False)

print("Testdaten erfolgreich generiert!")
print(df)
