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

HumanCellAtlas / metadata-api / 37
98%

Build:
DEFAULT BRANCH: develop
Ran 24 Aug 2018 10:16PM UTC
Jobs 1
Files 9
Run time 32s
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
37

push

travis-ci

web-flow
Add helper function for accessing renamed fields (#18)

```
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 37.1 24 Aug 2018 10:16PM UTC 0
96.03
Travis Job 37.1
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #37
  • 42a49e30 on github
  • Prev Build on develop (#33)
  • Next Build on develop (#39)
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