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

rjw57 / tawhiri / 41
18%
master: 1%

Build:
Build:
LAST BUILD BRANCH: add-etag
DEFAULT BRANCH: master
Ran 15 Nov 2014 11:25AM UTC
Jobs 2
Files 9
Run time 1min
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
41

push

travis-ci

rjw57
api: refactor as separate Flask Blueprint

Increase modularity by moving API into the tawhiri.api.v1 module and
re-expressing it as a Flask blueprint. This lets one specify the
location of the API as a single URL prefix when creating the Flask app.
It also allows single-API only applications as used, for example, in
testapi.py.

This PR makes no change to the logic of api.py. It merely moves the file
and allows central configuration of the URL prefix. See
http://flask.pocoo.org/docs/0.10/blueprints/ for more discussion of the
advantages of using Blueprints when considering application modularity.

The rationale for this modification is that it allows a) experimental or
"v2" APIs to be cleanly added and b) for APIs to share common
code/interfaces within the api module.

It is envisaged that some light re-factoring will lead to a module
within api which can be cleanly mocked to unit-test the web request
logic separately from the actual landing prediction code.

156 of 878 relevant lines covered (17.77%)

0.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41.1 15 Nov 2014 11:25AM UTC 0
17.77
Travis Job 41.1
2 41.2 15 Nov 2014 11:26AM UTC 0
17.77
Travis Job 41.2
Source Files on build 41
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #41
  • 06e7d67e on github
  • Prev Build on api-refactor (#38)
  • Next Build on api-refactor (#44)
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