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

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

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2017 08:45PM UTC
Files 7
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

19 Oct 2017 08:31PM UTC coverage: 62.293%. Remained the same
1858.3

push

travis-ci

Ichimonji10
Move and update just-added tests for Pulp 3

Move newly added tests for Pulp 3 into package `pulp_smash.tests.pulp3`.
All new Pulp 3 tests will go in to this package, and eventually, all
Pulp 2 tests will be moved into package `pulp_smash.tests.pulp2`.

If a user wishes to run Pulp 2 tests, they don't have to change their
behaviour at all. They can continue the existing workflow of installing
Pulp Smash, creating a configuration file, and executing:

    python -m unittest discover pulp_smash.tests

The new tests are written in such a way that they will be skipped. If a
user wishes to run Pulp 3 tests, they will need to execute:

    python -m unittest discover pulp_smash.tests.pulp3  # for now
    python -m unittest discover pulp_smash.tests  # eventually

This organization has several advantages:

* No backward compatibilities are introduced.
* Version information stays DRY. If tests were in module
  `pulp_smash.pulp3.tests`, then a user would need to specify Pulp's
  version in the Pulp Smash configuration file *and* run the correct
  package of tests. With the current organization, the user need only to
  specify Pulp's version in the Pulp Smash configuration file.
* Test runner invocation is more concise and logically simpler.

In addition to this reorganisation, do at least the following:

* Rename directory containing tests for core of Pulp 3 from "platform"
  to "pulpcore." This ensures that tests are in a module named after the
  plugin that they test.
* Add a new constant defining the base Pulp 3 API path, and use it as
* appropriate.
* Add tests that verify that when a client authenticates with invalid
  credentials, Pulp 3 returns an error.
* Drop some code that unnecessarily tweaks URLs.
* Tweak docstrings.

527 of 846 relevant lines covered (62.29%)

0.62 hits per line

Source Files on job 1858.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1858
  • Travis Job 1858.3
  • 6bc45e78 on github
  • Prev Job for on master (#1847.3)
  • Next Job for on master (#1861.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