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

lepture / flask-wtf / 180
100%

Build:
DEFAULT BRANCH: master
Ran 13 Feb 2015 05:30PM UTC
Jobs 5
Files 11
Run time 50s
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
180

Pull #169

travis-ci

nfvs
Abstract protect_csrf() into a separate method.

Right now, CsrfProtect._csrf_protect() does 1) check if this view should
be checked for a CSRF token, and 2) validate the actual token.

This commit abstracts 2) into a separate method so we can manually call
this method (for example on a before_request callback). This makes it
possible to do further checks before validating the CSRF (e.g. skip the
check for REST calls using OAuth).

This commit also adds a configuration parameter WTF_CSRF_CHECK_DEFAULT,
which will determine whether to check all views by default or not. It
defaults to True.
Pull Request #169: Abstract _csrf_protect() into a separate method.

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

364 of 399 relevant lines covered (91.23%)

4.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
flask_wtf/csrf.py
Jobs
ID Job ID Ran Files Coverage
1 180.1 13 Feb 2015 05:30PM UTC 0
88.97
Travis Job 180.1
2 180.2 13 Feb 2015 05:30PM UTC 0
89.22
Travis Job 180.2
3 180.3 13 Feb 2015 05:30PM UTC 0
90.73
Travis Job 180.3
4 180.4 13 Feb 2015 05:30PM UTC 0
90.73
Travis Job 180.4
5 180.5 13 Feb 2015 05:31PM UTC 0
89.22
Travis Job 180.5
Source Files on build 180
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #180
  • Pull Request #169
  • PR Base - master (#178)
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