jupiter0913 commited on
Commit ·
a6e99f5
1
Parent(s): ddf1138
feature(#98): updated test api...
Browse files
Brain/tests/functional/test_api.py
CHANGED
|
@@ -244,8 +244,8 @@ def test_delete_data(body):
|
|
| 244 |
{
|
| 245 |
"data": {
|
| 246 |
"sender": "test@gmail.com",
|
| 247 |
-
"pwd": "
|
| 248 |
-
"imap_folder": "inbox
|
| 249 |
},
|
| 250 |
"confs": {
|
| 251 |
"token": "test_token",
|
|
@@ -274,11 +274,11 @@ def test_read_emails(body):
|
|
| 274 |
"sender": "testsender@gmail.com",
|
| 275 |
"pwd": "use app password of your google account",
|
| 276 |
"to": "testto@gmail.com",
|
| 277 |
-
"subject": "
|
| 278 |
-
"body": "
|
| 279 |
-
"to_send":
|
| 280 |
"filename": "test.txt",
|
| 281 |
-
"file_content": "
|
| 282 |
},
|
| 283 |
"confs": {
|
| 284 |
"token": "test_token",
|
|
|
|
| 244 |
{
|
| 245 |
"data": {
|
| 246 |
"sender": "test@gmail.com",
|
| 247 |
+
"pwd": "password",
|
| 248 |
+
"imap_folder": "inbox",
|
| 249 |
},
|
| 250 |
"confs": {
|
| 251 |
"token": "test_token",
|
|
|
|
| 274 |
"sender": "testsender@gmail.com",
|
| 275 |
"pwd": "use app password of your google account",
|
| 276 |
"to": "testto@gmail.com",
|
| 277 |
+
"subject": "Test Send",
|
| 278 |
+
"body": "Hi, This is test email.",
|
| 279 |
+
"to_send": True,
|
| 280 |
"filename": "test.txt",
|
| 281 |
+
"file_content": "SGVsbG8sIFdvcmxkIQ==",
|
| 282 |
},
|
| 283 |
"confs": {
|
| 284 |
"token": "test_token",
|