improvements
This commit is contained in:
@@ -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