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

PulpQE / pulp-smash / 379 / 1
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2016 04:01PM UTC
Files 6
Run time 0s
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

28 Mar 2016 03:41PM UTC coverage: 73.219% (+1.3%) from 71.939%
379.1

push

travis-ci

Ichimonji10
Respect target_platform_release bug tracker field

Change the signatures of `bug_is_testable` and `bug_is_untestable` in
module `pulp_smash.selectors`, from this:

    bug_is_testable(bug_id)
    bug_is_untestable(bug_id)

To this:

    bug_is_testable(bug_id, pulp_version)
    bug_is_untestable(bug_id, pulp_version)

The new `pulp_version` parameter is "A ``packaging.version.Version``
object telling the version of the Pulp server we are testing." It lets
the function determine whether a bug is testable or not based not only
on the state of a bug, but the Pulp version in which the bug was fixed
relative to the Pulp version we're testing against. Sample usage:

    >>> from packaging.version import Version
    >>> from pulp_smash.selectors import bug_is_testable
    >>> bug_is_testable(1743, Version('2.7.0'))
    False
    >>> bug_is_testable(1743, Version('2.7.99999'))
    False
    >>> bug_is_testable(1743, Version('2.8'))
    True
    >>> bug_is_testable(1743, Version('2.8.0'))
    True
    >>> bug_is_testable(1743, Version('2.8.0.0'))
    True
    >>> bug_is_testable(1743, Version('2.8.1'))
    True
    >>> bug_is_testable(1743, Version('3'))
    True

If a bug's "Target Platform Release" field is unset, the field is
effectively ignored. [1] For example:

    >>> from packaging.version import Version
    >>> from pulp_smash.selectors import bug_is_testable
    >>> bug_is_testable(1744, Version('2'))
    True
    >>> bug_is_testable(1744, Version('3'))
    True

Test suite results do not change as a result of this commit. Results
generated with:

    python -m unittest2 discover pulp_smash.tests

Fix #173.

[1] More precisely, we assume that the bug has been fixed in Pulp
    version 0.

298 of 407 relevant lines covered (73.22%)

0.73 hits per line

Source Files on job 379.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 379
  • Travis Job 379.1
  • 67435672 on github
  • Prev Job for on master (#377.1)
  • Next Job for on master (#382.1)
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