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

ChristianTremblay / pyhaystack / 105
39%
master: 40%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 30 Aug 2016 02:57PM UTC
Jobs 5
Files 48
Run time 3min
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
105

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

939 of 2148 relevant lines covered (43.72%)

2.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 105.1 30 Aug 2016 02:57PM UTC 0
43.67
Travis Job 105.1
2 105.2 30 Aug 2016 03:01PM UTC 0
43.16
Travis Job 105.2
3 105.3 30 Aug 2016 02:57PM UTC 0
43.16
Travis Job 105.3
4 105.4 30 Aug 2016 02:57PM UTC 0
43.16
Travis Job 105.4
5 105.5 30 Aug 2016 02:59PM UTC 0
43.16
Travis Job 105.5
Source Files on build 105
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #105
  • e8eebb34 on github
  • Prev Build on develop (#101)
  • Next Build on develop (#111)
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