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

PulpQE / pulp-smash / 2609
63%

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

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%)

1.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2609.1 08 Jun 2018 06:22PM UTC 0
64.27
Travis Job 2609.1
2 2609.2 08 Jun 2018 06:22PM UTC 0
64.27
Travis Job 2609.2
3 2609.3 08 Jun 2018 06:21PM UTC 0
64.27
Travis Job 2609.3
Source Files on build 2609
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2609
  • 2212f8e7 on github
  • Prev Build on master (#2601)
  • Next Build on master (#2610)
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