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

PulpQE / pulp-smash / 1858
63%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2017 08:44PM UTC
Jobs 3
Files 7
Run time 2min
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
1858

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

1.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1858.1 19 Oct 2017 08:44PM UTC 0
62.29
Travis Job 1858.1
2 1858.2 19 Oct 2017 08:44PM UTC 0
62.29
Travis Job 1858.2
3 1858.3 19 Oct 2017 08:45PM UTC 0
62.29
Travis Job 1858.3
Source Files on build 1858
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1858
  • 6bc45e78 on github
  • Prev Build on master (#1847)
  • Next Build on master (#1861)
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