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

ChristianTremblay / pyhaystack / 112
39%
master: 40%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 05 Oct 2016 01:12AM UTC
Jobs 4
Files 48
Run time 1min
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
112

push

travis-ci

ChristianTremblay
Bugfix: Handle missing entities in multi-entity read requests (#26)

* WC-366: client.ops.entity: Handle missing entities in read response.

If an entity does not exist, and we are requesting more than one, the
missing entity appears in the grid as a row of nulls:

    DEBUG:pyhaystack.client.WideskyHaystackSession.get_entity:Received grid: <Grid>
        Columns:
            id
            dis
            status
            user
        Row    0: id=Ref(u'test_user4', u'test_user4', True), dis=u'Test User4', status=u'inactive', user=MARKER
        Row    1: id=None, dis=None, status=None, user=None
        Row    2: id=Ref(u'test_user2', u'test_user2', True), dis=u'Test User2', status=u'inactive', user=MARKER
        Row    3: id=Ref(u'test_user3', u'test_user3', True), dis=u'Test User3', status=u'inactive', user=MARKER
    </Grid>

which then results in this exception:

      File "pyhaystack/client/ops/entity.py", line 51, in _on_read
        entity_id = row.pop('id').name  # Should be a Ref
    AttributeError: 'NoneType' object has no attribute 'name'

We should skip rows that have a null 'id'.

* WC-366: client entity tests: Test retrieval of entities by id.

* WC-366: client entity tests: Python 3 support

4 of 4 new or added lines in 1 file covered. (100.0%)

939 of 2148 relevant lines covered (43.72%)

1.73 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
5
100.0
pyhaystack/client/widesky.py
5
100.0
pyhaystack/client/ops/his.py
10
100.0
pyhaystack/client/http/base.py
15
100.0
pyhaystack/client/ops/entity.py
22
100.0
pyhaystack/client/ops/vendor/widesky.py
Jobs
ID Job ID Ran Files Coverage
1 112.1 05 Oct 2016 01:12AM UTC 0
43.67
Travis Job 112.1
3 112.3 05 Oct 2016 01:12AM UTC 0
43.16
Travis Job 112.3
4 112.4 05 Oct 2016 01:12AM UTC 0
43.16
Travis Job 112.4
5 112.5 05 Oct 2016 01:13AM UTC 0
43.16
Travis Job 112.5
Source Files on build 112
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #112
  • e8eebb34 on github
  • Prev Build on develop (#111)
  • Next Build on develop (#117)
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