From 3fa43432d59f30a02b387ceaf9d8c8484178a33a Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 4 Aug 2025 12:26:52 -0700 Subject: [PATCH] improvements --- .env | 10 +++++++--- tests/test_imap_routes.py | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.env b/.env index 619eb86..f12cda8 100644 --- a/.env +++ b/.env @@ -1,5 +1,9 @@ SECRET_KEY=your-secret-key-here DATABASE_URL=postgresql://postgres:password@localhost:5432/email_organizer_dev -OPENAI_API_KEY=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 -OPENAI_BASE_URL=https://openrouter.ai/api/v1 -OPENAI_MODEL=qwen/qwen3-coder +# OPENAI_API_KEY=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 +# OPENAI_BASE_URL=https://openrouter.ai/api/v1 +# OPENAI_MODEL=qwen/qwen3-coder +# +OPENAI_API_KEY=aaoeu +OPENAI_BASE_URL=http://localhost:8082/v1 +OPENAI_MODEL= diff --git a/tests/test_imap_routes.py b/tests/test_imap_routes.py index ea4fc3e..80abe3d 100644 --- a/tests/test_imap_routes.py +++ b/tests/test_imap_routes.py @@ -34,10 +34,10 @@ class TestIMAPRoutes: response = client.post('/api/imap/test', data={ 'server': 'test.com', - 'port': '993', - 'username': 'test@test.com', - 'password': 'testpass', - 'use_ssl': 'on' + 'port': '5153', + 'username': 'user1@example.com', + 'password': 'password1', + 'use_ssl': 'off' }) assert response.status_code == 200 @@ -60,4 +60,4 @@ class TestIMAPRoutes: response = client.post('/api/imap/sync') # Should fail without real IMAP server but return proper response - assert response.status_code in [200, 400] \ No newline at end of file + assert response.status_code in [200, 400]