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

numberoverzero / bloop / 689
100%
master: 100%

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

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

Jobs
ID Job ID Ran Files Coverage
1 689.1 (TOXENV=unit) 17 Oct 2016 09:34AM UTC 0
100.0
Travis Job 689.1
2 689.2 (TOXENV=integ) 17 Oct 2016 09:35AM UTC 0
Travis Job 689.2
Source Files on build 689
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #689
  • f83cb5c4 on github
  • Prev Build on streams (#688)
  • Next Build on streams (#690)
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