-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f2b2c4
commit f6e9557
Showing
6 changed files
with
26 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,7 @@ def calendar_response_with_delete(): | |
|
||
def event_response(calendar_uid, sync_from_time): | ||
if calendar_uid == "first_calendar_uid": | ||
return [ | ||
yield from [ | ||
Event.create( | ||
uid="first_event_uid", title="Plotting Meeting", **default_params | ||
), | ||
|
@@ -83,7 +83,7 @@ def event_response(calendar_uid, sync_from_time): | |
), | ||
] | ||
else: | ||
return [ | ||
yield from [ | ||
Event.create( | ||
uid="second_event_uid", title="Plotting Meeting", **default_params | ||
), | ||
|
@@ -95,7 +95,7 @@ def event_response(calendar_uid, sync_from_time): | |
|
||
def event_response_with_update(calendar_uid, sync_from_time): | ||
if calendar_uid == "first_calendar_uid": | ||
return [ | ||
yield from [ | ||
Event.create( | ||
uid="first_event_uid", | ||
title="Top Secret Plotting Meeting", | ||
|
@@ -110,12 +110,12 @@ def event_response_with_participants_update(calendar_uid, sync_from_time): | |
new_events[0].participants = [ | ||
{"name": "Johnny Thunders", "email": "[email protected]"} | ||
] | ||
return new_events | ||
yield from new_events | ||
|
||
|
||
def event_response_with_delete(calendar_uid, sync_from_time): | ||
if calendar_uid == "first_calendar_uid": | ||
return [ | ||
yield from [ | ||
Event.create(uid="first_event_uid", status="cancelled", **default_params) | ||
] | ||
|
||
|