"""
    Fallback Locust test file for {api_info.get('title', 'API')}
"""

from locust import HttpUser, task, between
import logging

logger = logging.getLogger(__name__)


class BasicAPIUser(HttpUser):
        wait_time = between(1, 5)

        @task(1)
        def health_check(self):
            """Basic health check"""
            with self.client.get("/health", catch_response=True) as response:
                if response.status_code == 200:
                    response.success()
                else:
                    response.failure(f"Health check failed: {{response.status_code}}")


if __name__ == "__main__":
    print("Running fallback Locust test for {{api_info.title}}")
