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

openshift / openshift-restclient-python / 521 / 5
52%
master: 52%

Build:
DEFAULT BRANCH: master
Ran 05 Jul 2018 01:45PM UTC
Files 248
Run time 30s
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

05 Jul 2018 01:24PM UTC coverage: 21.892%. Remained the same
TEST_SUITE=test OPENSHIFT_VERSION=3.7

push

travis-ci

fabianvf
Call functions on resource fields if they don't exist as name (#179)

`resource.get(key, default)` should call `resource.__dict__.get(key, default)`
rather than `resource.__dict__.__getitem__('get')` assuming 'get' is not
a key of `resource`.

Because e.g. resource.items is ambiguous, favour
`resource.__dict__.__getitem__('items')` over `resource.__dict__.items()`
but fallback to the latter

Before:
```
>>> dep.status.get('unavailableReplicas')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not callable
```
After:
```
>>> dep.status.get('unavailableReplicas', 0)
0
```

876 of 15948 branches covered (5.49%)

8506 of 38854 relevant lines covered (21.89%)

0.22 hits per line

Source Files on job 521.5 (TEST_SUITE=test OPENSHIFT_VERSION=3.7)
  • Tree
  • List 0
  • Changed 30
  • Source Changed 30
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 496
  • Travis Job 521.5
  • 1a432917 on github
  • Prev Job for TEST_SUITE=test OPENSHIFT_VERSION=3.7 on master (#516.6)
  • Next Job for TEST_SUITE=test OPENSHIFT_VERSION=3.7 on master (#522.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

© 2026 Coveralls, Inc