Ran
|
Files
6
|
Run time
1s
|
Badge
Embed ▾
README BADGES
|
travis-ci
<a href="https://github.com/PulpQE/pulp-smash/commit/<a class=hub.com/PulpQE/pulp-smash/commit/67bd2a143f9eb3881a25859c43861c3f8649a5ed">67bd2a143<a href="https://github.com/PulpQE/pulp-smash/commit/67bd2a143f9eb3881a25859c43861c3f8649a5ed">">Refactor just-added RPM rsync distributor tests Add a new function, `_get_dists_by_type_id`. It finds information about all of a repository&#39;s distributors, and returns that information as a dict keyed by distributor type IDs. The dict is in this form: {&#39;yum_distributor&#39;: {…}, &#39;rpm_rsync_distributor&#39;: {…}} Add a new method, `_RsyncDistUtilsMixin.make_repo`. It creates a repository with a yum importer, yum distributor and RPM rsync distributor. Finally, rename `_MakeUserMixin` to `_RsyncDistUtilsMixin`. This reflects the fact that the class contains tools for working with RPM rsync distributors, not just users. These changes reduce the amount of duplicated logic in the test cases (`PublishTestCase` and `PublishBeforeYumTestCase`), and should be useful when writing more test cases. The RPM rsync distributor test cases were added in </a><a class="double-link" href="https://github.com/PulpQE/pulp-smash/commit/<a class="double-link" href="https://github.com/PulpQE/pulp-smash/commit/96fc3884b070965edfe00bb05eceb58f0305830d">96fc3884b</a>">96fc3884b</a><a href="https://github.com/PulpQE/pulp-smash/commit/67bd2a143f9eb3881a25859c43861c3f8649a5ed">.
364 of 516 relevant lines covered (70.54%)
0.71 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|