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

seecloud / ceagle / 175
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: run_abao_from_tox
DEFAULT BRANCH: master
Ran 30 Nov 2016 10:47AM UTC
Jobs 1
Files 18
Run time 1s
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
175

push

travis-ci

teferi
Modify api_fake_data's api_handler to be lazy

Previously api_handler function returned a lambda, that could be used as
a decorator and would return fake or real function, depending on a
global variable. The decision was made at import time. This made it very
difficult to test decorated functions behaviour, since these functions
were decorated away before there was any chance to mock config or global
variable.
With this commit api_handler returns a decorator, that, when applied,
returns a function, that proxies calls to fake or real api function,
depending on global variable.
This consequently means there will be an extra function call for every
request. However this would potentially allow us to switch behaviour
from/to fake functions on the fly.

This commit also restores fake decorators around health API functions.

251 of 266 relevant lines covered (94.36%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
5 175.5 (TOXENV=cover) 30 Nov 2016 10:47AM UTC 0
94.36
Travis Job 175.5
Source Files on build 175
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #175
  • ab531b7e on github
  • Prev Build on heath_backend (#170)
  • Next Build on heath_backend (#177)
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

© 2025 Coveralls, Inc