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

theskumar / python-dotenv / 638 / 5
88%
master: 88%

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

16 Jul 2020 07:45PM UTC coverage: 89.157% (+0.05%) from 89.104%
TOXENV=py36

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.

370 of 415 relevant lines covered (89.16%)

0.89 hits per line

Source Files on job 638.5 (TOXENV=py36)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 484
  • Travis Job 638.5
  • 4b434362 on github
  • Prev Job for TOXENV=py36 on master (#627.5)
  • Next Job for TOXENV=py36 on master (#641.5)
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