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

seecloud / ceagle / 181 / 5
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: run_abao_from_tox
DEFAULT BRANCH: master
Ran 30 Nov 2016 11:11AM UTC
Files 18
Run time 2s
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

30 Nov 2016 11:10AM UTC coverage: 95.113% (+0.8%) from 94.361%
TOXENV=cover

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.

253 of 266 relevant lines covered (95.11%)

0.95 hits per line

Source Files on job 181.5 (TOXENV=cover)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 181
  • Travis Job 181.5
  • 41bbab45 on github
  • Prev Job for TOXENV=cover on heath_backend (#179.5)
  • Next Job for TOXENV=cover on heath_backend (#191.5)
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