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

PulpQE / pulp-smash / 45 / 4
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 20 Oct 2015 04:36PM UTC
Files 1
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

20 Oct 2015 04:00PM UTC coverage: 89.011%. Remained the same
45.4

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.

81 of 91 relevant lines covered (89.01%)

0.89 hits per line

Source Files on job 45.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 45
  • Travis Job 45.4
  • dcd77e2f on github
  • Prev Job for on master (#43.4)
  • Next Job for on master (#48.1)
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