Skip to content

Commit 078cfb8

Browse files
committed
Add Caitlin to authors. Add contribution to changelog. Formwatting tweaks.
1 parent e2cf093 commit 078cfb8

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

AUTHORS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ Patches and Suggestions
2626
- Bradford Lynch [@bradfordlynch](https://github.com/bradfordlynch)
2727
- Brian Bennett [@bennettscience](https://github.com/bennettscience)
2828
- Bruce Spang [@brucespang](https://github.com/brucespang)
29-
- Catherine Abbruzzese [@cat0698](https://github.com/cat0698))
29+
- Caitlin Fabian [@Caitlin-Fabian](https://github.com/Caitlin-Fabian)
3030
- Cameron Cuff [@ctcuff](https://github.com/ctcuff)
31+
- Catherine Abbruzzese [@cat0698](https://github.com/cat0698)
3132
- Craig Thompson [@craigdsthompson](https://github.com/craigdsthompson)
3233
- Dalton Durst [@UniversalSuperBox](https://github.com/UniversalSuperBox)
3334
- Damian Sweeney [@damianfs](https://github.com/damianfs)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### New Endpoint Coverage
66

77
- New Quizzes
8+
- Delete Page in Groups (Thanks, [@Caitlin-Fabian](https://github.com/Caitlin-Fabian))
89

910
### General
1011

canvasapi/page.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ def delete(self, **kwargs):
1212
Delete this page.
1313
1414
:calls: `DELETE /api/v1/courses/:course_id/pages/:url \
15-
<https://canvas.instructure.com/doc/api/pages.html#method.wiki_pages_api.destroy>`
15+
<https://canvas.instructure.com/doc/api/pages.html#method.wiki_pages_api.destroy>`_
1616
or
17-
:calls: `DELETE /api/v1/groups/:group_id/pages/:url \
18-
<https://canvas.instructure.com/doc/api/pages.html#method.wiki_pages_api.destroy>`
17+
`DELETE /api/v1/groups/:group_id/pages/:url \
18+
<https://canvas.instructure.com/doc/api/pages.html#method.wiki_pages_api.destroy>`_
1919
20-
:rtype: :class:`canvasapi.group.Group` or :class:`canvasapi.page.Page`
20+
:rtype: :class:`canvasapi.page.Page`
2121
"""
2222

2323
response = self._requester.request(
@@ -55,7 +55,8 @@ def get_parent(self, **kwargs):
5555
5656
:calls: `GET /api/v1/groups/:group_id \
5757
<https://canvas.instructure.com/doc/api/groups.html#method.groups.show>`_
58-
or :calls: `GET /api/v1/courses/:id \
58+
or
59+
`GET /api/v1/courses/:id \
5960
<https://canvas.instructure.com/doc/api/courses.html#method.courses.show>`_
6061
6162
:rtype: :class:`canvasapi.group.Group` or :class:`canvasapi.course.Course`

tests/test_page.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test__str__(self, m):
3333
string = str(self.page_course)
3434
self.assertIsInstance(string, str)
3535

36+
# edit()
3637
def test_edit(self, m):
3738
register_uris({"page": ["edit"]}, m)
3839

@@ -43,6 +44,7 @@ def test_edit(self, m):
4344
self.assertTrue(hasattr(self.page_course, "title"))
4445
self.assertEqual(self.page_course.title, new_title)
4546

47+
# delete()
4648
def test_delete_course(self, m):
4749
register_uris({"page": ["delete_page_course"]}, m)
4850

0 commit comments

Comments
 (0)