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

PulpQE / pulp-smash / 346
63%

Build:
DEFAULT BRANCH: master
Ran 18 Mar 2016 09:58PM UTC
Jobs 3
Files 6
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
346

push

travis-ci

Ichimonji10
Further refactor OSTree API tests

* Add documentation stubs.
* Rename function `setUpModule` to `skip_if_no_plugin`. (This function is
  designed to be called from `setUpModule` functions in `test_*`
  modules, but does not need to obey the camelCase unittest naming
  conventions.)
* Change how unit tests are distributed. Ensure that all test cases do
  check that a call report has an HTTP 202 status code (thus improving
  test coverage and increasing the number of tests). Move checks
  regarding the contents of successfully completed tasks from test cases
  to response handlers (thus improving test coverage and decreasing the
  number of tests).
* Make function `create_sync_repo` use the `pulp_smash.api.safe_handler`
  response handler to verify completed tasks. This improves test
  coverage for completed tasks, but limits this function to being usable
  in cases where a repository sync succeeds. Therefore, also create a
  private `_sync_repo` function which does not verify the contents of
  tasks.
* In package `pulp_smash.tests.ostree`, rename module `ostree_utils` to
  `utils`. This allows for a more precise namespace hierarchy and more
  concise imports in some cases. In cases where the import produces a
  name conflict, importing the module `as ostree_utils` is recommended.

Test results are OK after this commit. 18 tests execute before, and 17
after. Test results generated with:

    python -m unittest2 discover pulp_smash.tests.ostree.api_v2

Test coverage is increased despite the drop in number of test cases. See
notes above, or actual source code if needed.

282 of 392 relevant lines covered (71.94%)

2.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 346.1 18 Mar 2016 09:59PM UTC 0
71.94
Travis Job 346.1
2 346.2 18 Mar 2016 09:58PM UTC 0
71.94
Travis Job 346.2
4 346.4 18 Mar 2016 09:58PM UTC 0
71.94
Travis Job 346.4
Source Files on build 346
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #346
  • cbddc70b on github
  • Prev Build on master (#344)
  • Next Build on master (#349)
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