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

PulpQE / pulp-smash / 114
63%

Build:
DEFAULT BRANCH: master
Ran 04 Dec 2015 04:53PM UTC
Jobs 3
Files 2
Run time 21s
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
114

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

2.27 hits per line

Jobs
ID Job ID Ran Files Coverage
2 114.2 04 Dec 2015 04:54PM UTC 0
75.51
Travis Job 114.2
3 114.3 04 Dec 2015 04:53PM UTC 0
75.51
Travis Job 114.3
4 114.4 04 Dec 2015 04:53PM UTC 0
75.51
Travis Job 114.4
Source Files on build 114
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #114
  • 5a526c6a on github
  • Prev Build on master (#113)
  • Next Build on master (#115)
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