forked from ucfopen/canvasapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Param for get_appointment_groups, checks for creating new appointment…
… groups Fixes ucfopen#678 Two issues in one: 1. `canvas.get_appointment_groups()` returns an empty list for teachers because it defaults to "reservable", but instructors can't reserve, so the list is empty. Create a new param on the method that defaults to `reservable` but can be overridden. Update the docstring to note the change. 2. Update `create_appointment_group()` to take either a course ID or a `Course` object. Check that the `context_codes` key is present on the `appointment_group` dict before checking formatting. All tests passing.
- Loading branch information
1 parent
45ba5ac
commit 4e0ae56
Showing
3 changed files
with
65 additions
and
1 deletion.
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