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

PulpQE / pulp-smash / 114 / 2
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2015 04:54PM UTC
Files 2
Run time 0s
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

04 Dec 2015 04:50PM UTC coverage: 75.51% (+2.2%) from 73.333%
114.2

push

travis-ci

Ichimonji10
Make server config object smarter about files

By default, method `ServerConfig.read` tries to read from a file at
`~/.config/pulp_smash/settings.json` or the system-wide equivalent. This works
fine, but the resultant object is ignorant of where on disk it has been read
from. This leads to some non-intuitive behaviour. Consider the following script:

```python
cfg = ServerConfig().read(xdg_config_file='pulp-2.6.json')
cfg.save()
```

After being instantiated, the `cfg` object is populated from values in the
`~/.config/pulp_smash/pulp-2.6.json` file (or the system-wide equivalent). But
when `save` is called, the settings are saved back out to
`~/.config/pulp_smash/settings.json` (or the system-wide equivalent).

Update this behaviour so that `read` tells these objects which directory, file
and section they have been read from.

Test suite results when run against Pulp 2.6 and 2.7 systems are not affected by
this change.

111 of 147 relevant lines covered (75.51%)

0.76 hits per line

Source Files on job 114.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 114
  • Travis Job 114.2
  • 5a526c6a on github
  • Prev Job for on master (#113.2)
  • Next Job for on master (#115.4)
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