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

PulpQE / pulp-smash / 1209
63%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2017 04:06PM UTC
Jobs 2
Files 6
Run time 20s
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
1209

push

travis-ci

Ichimonji10
Make test case more resilient against errors

Add a new method, `pulp_smash.selectors.skip_if`. This method is similar
to `@unittest.skipIf`, but more flexible: it lets one execute skipping
logic at runtime and is capable of accessing class and instance
attributes.

Why make this method available? It exists because of the structure of
the unittest module:

1. The `setUpClass` method lacks access to certain tools like the
   `addCleanup` method. As a result, it is desirable to move
   failure-prone code to other locations, such as test methods.
2. Some failure-prone code should control whether or not the test
   methods in a test case should execute, but this is difficult to do,
   because all test methods execute regardless of how many test methods
   execute.
3. The `skip_if` decorator lets one move failure-prone code into a
   regular test method *and* control whether subsequent test methods
   execute.

This decorator may make it easier to avoid
`pulp_smash.utils.BaseAPITestCase`.

378 of 577 relevant lines covered (65.51%)

1.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1209.1 09 Jan 2017 04:06PM UTC 0
65.51
Travis Job 1209.1
2 1209.2 09 Jan 2017 04:06PM UTC 0
65.51
Travis Job 1209.2
Source Files on build 1209
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1209
  • aacf6fcd on github
  • Prev Build on master (#1207)
  • Next Build on master (#1213)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc