jupiter0913 commited on
Commit
a6e99f5
·
1 Parent(s): ddf1138

feature(#98): updated test api...

Browse files
Files changed (1) hide show
  1. Brain/tests/functional/test_api.py +6 -6
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": "use app password of your google account",
248
- "imap_folder": "inbox or drafts",
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": "title of email",
278
- "body": "email content",
279
- "to_send": "true or false whether send to inbox or drafts",
280
  "filename": "test.txt",
281
- "file_content": "string encoded with base64",
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",