improvements
This commit is contained in:
10
.env
10
.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=
|
||||
|
||||
@@ -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]
|
||||
assert response.status_code in [200, 400]
|
||||
|
||||
Reference in New Issue
Block a user