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

PulpQE / pulp-smash / 2609 / 2
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 08 Jun 2018 06:22PM UTC
Files 15
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

08 Jun 2018 01:35PM UTC coverage: 64.273%. Remained the same
2609.2

push

travis-ci

Ichimonji10
Rewrite response handlers

Currently, API response handlers accept two arguments: a
`PulpSmashConfig` object and a `requests.Response` object. Here's a
typical method signature:

    pulp_smash.api.json_handler(cfg, response)

This mostly works fine. But it does mean that the response handlers lose
some context about the state of the calling `pulp_smash.api.Client`
objects. For example, response handlers don't know if the calling API
client has been instructed to poll a specific
`pulp_smash.config.PulpHost`, as defined by the parent's `pulp_host`
attribute.

Re-write the API response handlers, so that the API client object which
is calling them is now passed to them. As an example of how this is
useful, the `_handle_202` function now knows which Pulp host it should
communicate with when polling asynchronous tasks.

This improved level of access also means that response handlers have a
greater ability to screw things up. Rewrite and expand the docstring on
`pulp_smash.api.Client`, in an attempt to ensure that users know
everything they need to know.

698 of 1086 relevant lines covered (64.27%)

0.64 hits per line

Source Files on job 2609.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2441
  • Travis Job 2609.2
  • 2212f8e7 on github
  • Prev Job for on master (#2601.3)
  • Next Job for on master (#2610.2)
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