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

PulpQE / pulp-smash / 158 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 21 Dec 2015 05:34PM UTC
Files 2
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

21 Dec 2015 05:29PM UTC coverage: 72.222% (-0.5%) from 72.68%
158.3

push

travis-ci

Ichimonji10
Use urljoin in `pulp_smash.utils`

Fix #58:

> Many places in the tests combine URLs and paths with simple string addition.
> This has the potential to produce incorrect results. […] Pulp should produce
> paths that behave correctly with urljoin, and we've had problems in the past
> with developers making "relative paths" that have a leading slash.

Using urljoin instead of plain string concatenation lets Pulp Smash test the
paths returned by Pulp. If Pulp returns a relative path with a leading slash,
plain string concatenation will produce a path containing a (typically harmless
but incorrect) `//`, but urljoin will produce a just-plain-wrong URL.

Test results both before and after change:

    ============  =============================
    Pulp Version  Test Suite Results
    ============  =============================
    2.7           OK (skipped=13)
    dev (2.8)     FAILED (errors=2, skipped=13)
    ============  =============================

Command used:

    PULP_SMASH_CONFIG_FILE=$PS_CONFIG \
    python -m unittest2 discover pulp_smash.tests

143 of 198 relevant lines covered (72.22%)

0.72 hits per line

Source Files on job 158.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 158
  • Travis Job 158.3
  • 956efdff on github
  • Prev Job for on master (#155.3)
  • Next Job for on master (#160.3)
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