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

numberoverzero / bloop / 689 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: stream-record-ordering
DEFAULT BRANCH: master
Ran 17 Oct 2016 09:34AM UTC
Files 15
Run time 7s
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

17 Oct 2016 09:34AM UTC coverage: 100.0%. Remained the same
TOXENV=unit

push

travis-ci

Joe Cross
Require models to be hashable, auto-discover parent hash functions

This one came up when I wanted to test equality of a dict by creating
identical instances of a model.  Because __eq__ was defined but
__hash__ wasn't, the WeakKeyDictionary bailed on the unhashable
subclass of BaseModel.

This is a big problem; the system requires Models to be hashable,
but there were no tests that tried to define __eq__ (thereby
giving up the default object.__hash__ function).

This makes that requirement explicit, and fails immediately if
a user tries to force a class to be unhashable (with __hash__ = None)

1960 of 1960 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 689.1 (TOXENV=unit)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 689
  • Travis Job 689.1
  • f83cb5c4 on github
  • Prev Job for TOXENV=unit on streams (#688.1)
  • Next Job for TOXENV=unit on streams (#690.1)
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