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

ucfopen / canvasapi / 1183
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 08 Nov 2020 05:45PM UTC
Jobs 3
Files 65
Run time 13s
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

pending completion
1183

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%)

3.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1183.1 08 Nov 2020 05:45PM UTC 0
100.0
Travis Job 1183.1
2 1183.2 08 Nov 2020 05:45PM UTC 0
100.0
Travis Job 1183.2
3 1183.3 08 Nov 2020 05:45PM UTC 0
100.0
Travis Job 1183.3
Source Files on build 1183
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1183
  • 9175ff4b on github
  • Prev Build on develop (#1182)
  • Next Build on develop (#1197)
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