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

fossasia / open-event-orga-server / 259
76%

Build:
DEFAULT BRANCH: master
Ran 24 May 2016 11:23AM UTC
Jobs 1
Files 82
Run time 4s
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
259

push

travis-ci

juslee
Flask-RESTplus GET APIs (#373)

* Add `api` module

- Add `flask-restplus` to requirements
- Register Blueprint as API version2
- Add API helper functions
- Create GET API for Events

* Add session namespace

- Add Session API namespace
- Update helper functions. Add `get_list_or_404` function.

* Add namespaces for remaining services

- Create namespaces for:
  - Sponsors
  - Tracks
  - Speakers
  - Microlocations
  - Levels
  - Languages
  - Formats
- Update `__init__.py` to add namespaces

* Update API models to add list and nested fields

Use `fields.List` and `fields.Nested` to display list and nested fields.

* Add tests for GET APIs

* Check if model object belongs to event

Create `get_object_in_event`. It aborts with 404 if the object or event does not exist. If both exist but object does not belong to the event, it aborts with 400.

Create separate module for API tests. Create `api` in `tests`. Include utilities for api tests.

* Write tests for 404 and 400 reponse statuses

- Write tests for non existing services and event
- Write tests for unrelated services and event

* Remove redundant code from tests

Create `create_event` and `create_services` helper functions.

Fix codacy issues

* Fix codacy issues

432 of 432 new or added lines in 17 files covered. (100.0%)

1936 of 2701 relevant lines covered (71.68%)

0.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
100.0
open_event/api/helpers.py
2
100.0
tests/api/__init__.py
1
100.0
tests/api/test_get_api.py
1
100.0
tests/api/test_get_api_400.py
1
100.0
tests/api/test_get_api_404.py
Jobs
ID Job ID Ran Files Coverage
1 259.1 24 May 2016 11:23AM UTC 0
71.68
Travis Job 259.1
Source Files on build 259
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #259
  • 0f57cc58 on github
  • Prev Build on master (#243)
  • Next Build on master (#265)
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