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

theskumar / python-dotenv / 638
88%

Build:
DEFAULT BRANCH: master
Ran 16 Jul 2020 07:46PM UTC
Jobs 9
Files 7
Run time 20min
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
638

push

travis-ci

bbc2
Fix empty expanded value for duplicate key

Example problematic file:

```bash
hello=hi
greetings=${hello}
goodbye=bye
greetings=${goodbye}
```

It would result in `greetings` being associated with the empty string
instead of `"bye"`.

The problem came from the fact that bindings were converted to a dict,
and so deduplicated by key, before being interpolated.  The dict would
be `{"hello": "hi", "greetings": "${goodbye}", "goodbye": "bye"}` in the
earlier example, which shows why interpolation wouldn't work: `goodbye`
would not be defined when `greetings` was interpolated.

This commit fixes that by passing all values in order, even if there are
duplicated keys.

372 of 414 relevant lines covered (89.86%)

6.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 638.1 (TOXENV=lint) 16 Jul 2020 07:47PM UTC 0
0.0
Travis Job 638.1
2 638.2 (TOXENV=manifest) 16 Jul 2020 07:46PM UTC 0
0.0
Travis Job 638.2
3 638.3 (TOXENV=py27) 16 Jul 2020 07:46PM UTC 0
89.16
Travis Job 638.3
4 638.4 (TOXENV=py35) 16 Jul 2020 07:46PM UTC 0
89.16
Travis Job 638.4
5 638.5 (TOXENV=py36) 16 Jul 2020 07:46PM UTC 0
89.16
Travis Job 638.5
6 638.6 (TOXENV=py37) 16 Jul 2020 07:47PM UTC 0
89.16
Travis Job 638.6
7 638.7 (TOXENV=py38) 16 Jul 2020 07:48PM UTC 0
89.39
Travis Job 638.7
8 638.8 (TOXENV=pypy) 16 Jul 2020 07:48PM UTC 0
89.16
Travis Job 638.8
9 638.9 (TOXENV=pypy3) 16 Jul 2020 07:48PM UTC 0
89.16
Travis Job 638.9
Source Files on build 638
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #638
  • 4b434362 on github
  • Prev Build on master (#627)
  • Next Build on master (#641)
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

© 2025 Coveralls, Inc