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

HumanCellAtlas / metadata-api / 35
96%
develop: 98%

Build:
Build:
LAST BUILD BRANCH: feature/geryl/1469-updated-hca
DEFAULT BRANCH: develop
Ran 24 Aug 2018 10:09PM UTC
Jobs 1
Files 9
Run time 2s
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
35

push

travis-ci

hannes-ucsc
Add helper function for accessing renamed fields

```
lookup(entity, 'new_name', 'old_name')
```

reads better than

```
entity.get('old_name') or entity['new_name']
```

because it mentions the new name first. More importantly, the latter prioritizes to the old name which may be problematic if the old name is reintroduced for yet another field in the future.

Unlike

```
entity.get('new_name') or entity['old_name']
```

the first two raise `KeyError: `new_name` which is a subtle but important difference.

580 of 604 relevant lines covered (96.03%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35.1 24 Aug 2018 10:09PM UTC 0
96.03
Travis Job 35.1
Source Files on build 35
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #35
  • 3dfeedc6 on github
  • Prev Build on feature/hannes/lookup (#34)
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