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

hypothesis / h / 8538
68%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 12 Oct 2015 04:33PM UTC
Jobs 1
Files 88
Run time 3s
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
8538

push

travis-ci

nickstenning
Validate reset codes with custom type

Using the schema mapping validator to read the reset code and look up
the user in the database has one major disadvantage: the mapping
validator is not called until each individual field in the form
validates. This means that if you submit an incorrect code at the same
time as an incorrect password, you won't be informed that the code is
incorrect.

This commit addresses this problem by creating a custom schema type,
`ResetCode`, which bears the responsibility of transforming a reset code
into a user and back again for the form.

28 of 28 new or added lines in 2 files covered. (100.0%)

2487 of 3670 relevant lines covered (67.77%)

0.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
h/accounts/schemas.py
8
100.0
h/accounts/views.py
Jobs
ID Job ID Ran Files Coverage
1 8538.1 12 Oct 2015 04:33PM UTC 0
67.77
Travis Job 8538.1
Source Files on build 8538
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8538
  • f57aec52 on github
  • Prev Build on replace-accounts-forms (#8514)
  • Next Build on replace-accounts-forms (#8540)
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