summaryrefslogtreecommitdiff
path: root/addons/import_google/test/test_sync_google_calendar.yml
diff options
context:
space:
mode:
authorMeera Trambadia (OpenERP) <mtr@tinyerp.com>2011-09-16 11:11:38 +0530
committerMeera Trambadia (OpenERP) <mtr@tinyerp.com>2011-09-16 11:11:38 +0530
commitd979aad3de95ae24aa1db52cf17c4eecf3d3ce6b (patch)
tree592698c8e0dab53fcd157dd456a800bd4a80b5bf /addons/import_google/test/test_sync_google_calendar.yml
parenteea80125f7d1c739260929fb1f38866ef21439e1 (diff)
parentd101d3fbaaffe2d0219ac6cfeef50338a2501664 (diff)
[MERGE] branch merged with lp:openobject-addons
bzr revid: mtr@tinyerp.com-20110916054138-93b3caomaij5dyp4
Diffstat (limited to 'addons/import_google/test/test_sync_google_calendar.yml')
-rw-r--r--addons/import_google/test/test_sync_google_calendar.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/import_google/test/test_sync_google_calendar.yml b/addons/import_google/test/test_sync_google_calendar.yml
new file mode 100644
index 00000000000..28863f358bb
--- /dev/null
+++ b/addons/import_google/test/test_sync_google_calendar.yml
@@ -0,0 +1,36 @@
+-
+ In order to test google calendar feature with OpenERP, I import events from
+ a google account and store them in Meetings.
+- |
+ I create a record for the gmail account for which I want to import the contacts.
+-
+ !record {model: google.login, id: google_login_id0}:
+ user: testmail.openerp@gmail.com
+ password: openerptiny
+- |
+ I login into that account.
+-
+ !python {model: google.login}: |
+ self.login(cr, uid, [ref('google_login_id0')], context)
+- |
+ Now I want to import all the events from all the calendars in the user account.
+- |
+ I select all calendars.
+-
+ !record {model: synchronize.google.import, id: synchronize_google_import_id0}:
+ calendar_name: all
+- |
+ I import the events from the google calendar.
+-
+ !python {model: synchronize.google.import}: |
+ self.import_google(cr, uid, [ref('synchronize_google_import_id0')], context={'calendar':True})
+- |
+ Now I check my meetings are created or not.
+-
+ !python {model: crm.meeting}: |
+ model_obj = self.pool.get('ir.model.data')
+ meeting_ids = self.search(cr, uid, [])
+ model_ids = model_obj.search(cr, uid, [('res_id','in',meeting_ids),('model','=','crm.meeting'),('module','=','synchronize_google')])
+ assert model_ids, 'Meetings not created !'
+
+