• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ucfopen / canvasapi / 1182 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 07 Nov 2020 04:52PM UTC
Files 65
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Oct 2020 04:37PM UTC coverage: 100.0%. Remained the same
1182.1

cron

travis-ci

web-flow
Issue/420 fetch announcements (#421)

* Add checks for `context_code` key to announcements

Announcements come in through the `Canvas` object and do not include
a course ID directly. Since announcements are DiscussionTopics, we
can parse the ID from the `context_code` param.

Currently, the Canvas API only supports course-level context codes,
so this works for now, but will break as more contexts are added.

https://canvas.instructure.com/doc/api/announcements.html#method.announcements_api.index

* Update tests for announcements course ID parse

* ignore venv directory

* moved venv with other env/ directories

* more thorough checks for context_codes

* Accept a list of course IDs in get_announcements

Canvas returns announcements from the `canvas` object. The user has to
define which course or courses to pull from. Adding `course_list` as a
required parameter prevents failed calls by exposing this required
parameter to the user.

The list is processed to the `context_codes` format before being sent
in the request.

* update tests

* fix black formatting, added test coverage

* Add checks for `context_code` key to announcements

Announcements come in through the `Canvas` object and do not include
a course ID directly. Since announcements are DiscussionTopics, we
can parse the ID from the `context_code` param.

Currently, the Canvas API only supports course-level context codes,
so this works for now, but will break as more contexts are added.

https://canvas.instructure.com/doc/api/announcements.html#method.announcements_api.index

* Update tests for announcements course ID parse

* ignore venv directory

* moved venv with other env/ directories

* more thorough checks for context_codes

* Accept a list of course IDs in get_announcements

Canvas returns announcements from the `canvas` object. The user has to
define which course or courses to pull from. Adding `course_list` as a
required parameter... (continued)

3506 of 3506 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 1182.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1039
  • Travis Job 1182.1
  • 9175ff4b on github
  • Prev Job for on develop (#1181.3)
  • Next Job for on develop (#1183.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc