Ran
|
Files
7
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/PulpQE/pulp-smash/commit/39241e792">Fix functions for getting RPM names and versions The just-added `get_rpm_names_versions()` function communicates with Pulp via its API, and it requires API-specific information, like a repository's href. As a result, this function most useful when called from API tests. It's not easy to robustly call this function from CLI tests. Move this function into `pulp_smash.tests.pulp2.rpm.api_v2.utils`, in order to better indicate its intended use case. The function also incorrectly sorts version numbers. The following function calls produce differing results: from packaging.version import Version sorted(['0.2', '0.10']) sorted(['0.2', '0.10'], key=Version) Fix the function so that it correctly sorts version numbers. Reinstate a CLI equivalent to `get_rpm_names_versions()`. (With slightly improved version sorting logic.) This commit fixes errors introduced by </a><a class="double-link" href="https://github.com/PulpQE/pulp-smash/commit/f05212a56">f05212a56</a>
529 of 847 relevant lines covered (62.46%)
0.62 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|