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

emilyhorsman / nightshades-python / 29
95%

Build:
DEFAULT BRANCH: development
Ran 31 Jan 2016 03:18PM UTC
Jobs 3
Files 12
Run time 16s
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
29

push

travis-ci

emilyhorsman
Add user permissions on endpoints

api.v1.update_unit and api.v1.show_unit now check to ensure the user
logged in is the user who created the resources.

Changed nightshades.api.get_unit to accept the user_id as a keyword
argument. This way the method is still useful when no user check is
deliberately needed, but it is still available.
nightshades.api.mark_complete is now handled in the same way.

The api.v1 Blueprint now has an error handler for peewee.DoesNotExist
exceptions so it will throw a JSON API 404. Which exceptions the
internal API can possibly throw should be reviewed and this exception
handling should be organized. I think that having the route actions
raise exceptions (instead of `abort`ing) followed by Flask errorhandler
decorators makes more sense.

PRESERVE_CONTEXT_ON_EXCEPTION config flag in the test client is due to:
https://github.com/jarus/flask-testing/issues/21

328 of 333 relevant lines covered (98.5%)

2.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29.1 (NIGHTSHADES_POSTGRESQL_DB_URI='postgresqlext:///nightshades_test') 31 Jan 2016 03:18PM UTC 0
98.5
Travis Job 29.1
2 29.2 (NIGHTSHADES_POSTGRESQL_DB_URI='postgresqlext:///nightshades_test') 31 Jan 2016 03:18PM UTC 0
98.5
Travis Job 29.2
3 29.3 (NIGHTSHADES_POSTGRESQL_DB_URI='postgresqlext:///nightshades_test') 31 Jan 2016 03:18PM UTC 0
98.5
Travis Job 29.3
Source Files on build 29
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #29
  • eaf5c844 on github
  • Prev Build on development (#28)
  • Next Build on development (#30)
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