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

PulpQE / pulp-smash / 379
63%

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

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

2.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 379.1 28 Mar 2016 04:01PM UTC 0
73.22
Travis Job 379.1
2 379.2 28 Mar 2016 04:02PM UTC 0
73.22
Travis Job 379.2
3 379.3 28 Mar 2016 04:01PM UTC 0
73.22
Travis Job 379.3
4 379.4 28 Mar 2016 04:01PM UTC 0
73.22
Travis Job 379.4
Source Files on build 379
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #379
  • 67435672 on github
  • Prev Build on master (#377)
  • Next Build on master (#382)
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