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

openshift / openshift-restclient-python / 521
52%

Build:
DEFAULT BRANCH: master
Ran 05 Jul 2018 01:45PM UTC
Jobs 9
Files 248
Run time 21min
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
521

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

890 of 15966 branches covered (5.57%)

8512 of 38854 relevant lines covered (21.91%)

1.73 hits per line

Jobs
ID Job ID Ran Files Coverage
3 521.3 (TEST_SUITE=test OPENSHIFT_VERSION=latest) 05 Jul 2018 01:45PM UTC 0
21.89
Travis Job 521.3
4 521.4 (TEST_SUITE=test OPENSHIFT_VERSION=latest) 05 Jul 2018 01:47PM UTC 0
21.89
Travis Job 521.4
5 521.5 (TEST_SUITE=test OPENSHIFT_VERSION=3.7) 05 Jul 2018 01:45PM UTC 0
21.89
Travis Job 521.5
6 521.6 (TEST_SUITE=test OPENSHIFT_VERSION=3.7) 05 Jul 2018 01:57PM UTC 0
21.89
Travis Job 521.6
7 521.7 (TEST_SUITE=test OPENSHIFT_VERSION=3.6) 05 Jul 2018 01:57PM UTC 0
21.89
Travis Job 521.7
8 521.8 (TEST_SUITE=test OPENSHIFT_VERSION=3.6) 05 Jul 2018 02:00PM UTC 0
21.89
Travis Job 521.8
9 521.9 (TEST_SUITE=test OPENSHIFT_VERSION=1.5) 05 Jul 2018 02:00PM UTC 0
20.94
Travis Job 521.9
10 521.10 (TEST_SUITE=test OPENSHIFT_VERSION=1.5) 05 Jul 2018 02:02PM UTC 0
20.95
Travis Job 521.10
13 521.13 (TEST_SUITE=test OPENSHIFT_VERSION=latest) 05 Jul 2018 02:06PM UTC 0
Travis Job 521.13
Source Files on build 521
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #521
  • 1a432917 on github
  • Prev Build on master (#516)
  • Next Build on master (#522)
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