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

rjw57 / tawhiri / 42
17%
master: 1%

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

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.

13 of 13 new or added lines in 3 files covered. (100.0%)

156 of 878 relevant lines covered (17.77%)

0.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
tawhiri/api/v1.py
1
100.0
tawhiri/manager.py
5
100.0
tawhiri/app.py
Jobs
ID Job ID Ran Files Coverage
1 42.1 15 Nov 2014 11:27AM UTC 0
17.77
Travis Job 42.1
2 42.2 15 Nov 2014 11:29AM UTC 0
17.77
Travis Job 42.2
Source Files on build 42
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #42
  • 06e7d67e on github
  • Next Build on in-progress-api-refactor-2 (#43)
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