Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new_quizzes and graphql keywords #653

Merged

Conversation

bennettscience
Copy link
Contributor

Based on #612 and as an issue in #619, this adds the new_quizzes and graphql keyword endpoints in the requester module. Methods which specify these locations will have the correct URL supplied by the library in the _url parameter for the requester.

Calls from the canvas, course, and new_quizzes modules have been updated to use they keywords rather than a formatted URL string.

All tests passing.

Fixes #619.

bennettscience and others added 2 commits May 10, 2024 22:35
Based on ucfopen#612 and as an issue in ucfopen#619, this adds the `new_quizzes` and
`graphql` keyword endpoints in the requester module. Methods which
specify these locations will have the correct URL supplied by the
library in the `_url` parameter for the requester.

Calls from the `canvas`, `course`, and `new_quizzes` modules have been
updated to use they keywords rather than a formatted URL string.

All tests passing.
Copy link

codecov bot commented May 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (c1e8556) to head (228de80).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #653   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines         3732      3740    +8     
=========================================
+ Hits          3732      3740    +8     

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

@bennettscience bennettscience marked this pull request as ready for review May 11, 2024 11:51
canvasapi/requester.py Outdated Show resolved Hide resolved
Rearrange to check for `_url` first, then assign the request url more
explicitely.
Copy link
Member

@Thetwam Thetwam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks! 👍

@Thetwam Thetwam merged commit 4b4fbd8 into ucfopen:develop May 12, 2024
7 checks passed
@bennettscience bennettscience deleted the issue/619-requester-new-quizzes-graphql branch May 14, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework url structure to accommodate graphql and new quizzes endpoints
2 participants