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

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

Build:
DEFAULT BRANCH: master
Ran 05 Jul 2018 02:00PM UTC
Files 248
Run time 56s
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: 20.943%. Remained the same
TEST_SUITE=test OPENSHIFT_VERSION=1.5

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
```

746 of 15946 branches covered (4.68%)

8137 of 38854 relevant lines covered (20.94%)

0.21 hits per line

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