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

PulpQE / pulp-smash / 44
61%
master: 63%

Build:
Build:
LAST BUILD BRANCH: 5873
DEFAULT BRANCH: master
Ran 20 Oct 2015 04:01PM UTC
Jobs 4
Files 1
Run time 20s
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
44

push

travis-ci

Ichimonji10
Let user select a config file

Fix #13:

> Pulp Smash's configuration file does not live with the source code itself. […]
> There's one down-side to the current approach, though: it's hard to work with
> multiple configuration files. Imagine that a user creates two virtualenvs,
> installs Pulp Smash into each, and then wants to run Pulp Smash from both
> locations. How can the user make the two Pulp Smash installations use a
> different configuration file?

Do this by making `ServerConfig` objects respect a new environment variable:
`PULP_SMASH_CONFIG_FILE`. By default, `ServerConfig` objects look for a
configuration file named "settings.json", but if the environment variable is
set, a configuration file by that name is looked for instead.

Add unit tests and documentation for the new functionality.

Manual test results:

    $ mv ~/.config/pulp_smash/settings{,2}.json
    $ ls -A1 ~/.config/pulp_smash/
    settings2.json
    $ python -m unittest2 discover pulp_smash.tests
    … (numerous ConfigFileNotFoundError exceptions)
    $ PULP_SMASH_CONFIG_FILE=settings2.json \
    > python -m unittest2 discover pulp_smash.tests
    ....F...
    …
    ----------------------------------------------------------------------
    Ran 8 tests in 3.968s

    FAILED (failures=1)

The one test failure is expected.

5 of 5 new or added lines in 1 file covered. (100.0%)

81 of 91 relevant lines covered (89.01%)

3.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
pulp_smash/config.py
Jobs
ID Job ID Ran Files Coverage
1 44.1 20 Oct 2015 04:01PM UTC 0
89.01
Travis Job 44.1
2 44.2 20 Oct 2015 04:01PM UTC 0
89.01
Travis Job 44.2
3 44.3 20 Oct 2015 04:01PM UTC 0
89.01
Travis Job 44.3
4 44.4 20 Oct 2015 04:01PM UTC 0
89.01
Travis Job 44.4
Source Files on build 44
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #44
  • dcd77e2f on github
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