|
Ran
|
Jobs
3
|
Files
6
|
Run time
43s
|
Badge
README BADGES
|
push
travis-ci
Release version 0.22.0 This release fixes a major bug present in version 0.21.0. Specifically, this release fixes a bug introduced by 3857d0180, entitled "Make class ServerConfig set a default version". The ServerConfig class will no longer set a default version if none is provided. The ServerConfig class now has the same behaviour it has had for some time: > When a `ServerConfig` object is created, only the 'url' argument is required. > All other arguments are optional. […] > > >>> from nailgun.config import ServerConfig > >>> hasattr(ServerConfig('some url'), 'version') > False This does lead to some awkward version comparisons: > This leads to idioms like the following in module `nailgun.entities`: > > if _get_version(self._server_config) < Version('6.1'): > # do something However, this approach is the most semantically correct approach available. In addition, in this case it seems better to have a single slightly awkward idiom for version comparisons than to have two separate but similar idioms for version comparisons.
1404 of 1445 relevant lines covered (97.16%)
2.91 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 482.1 | 0 |
97.16 |
Travis Job 482.1 | |
| 2 | 482.2 | 0 |
97.16 |
Travis Job 482.2 | |
| 3 | 482.3 | 0 |
97.16 |
Travis Job 482.3 |