Skip to content

Conversation

bennettscience
Copy link
Contributor

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.

Fixes #678

… 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.
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (45ba5ac) to head (4e0ae56).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #679   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           74        74           
  Lines         3764      3769    +5     
=========================================
+ Hits          3764      3769    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_appointment_groups is broken
1 participant