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

MrSenko / Kiwi / 192
62%
master: 57%

Build:
Build:
LAST BUILD BRANCH: v3.37
DEFAULT BRANCH: master
Ran 04 Aug 2017 01:57PM UTC
Jobs 4
Files 176
Run time 48s
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
192

push

travis-ci

atodorov
Don't wrap Prompt.render with HttpResponse

Prompt.render calls django.shortcuts.render which returns an
HttpResponse. When HttpResponse.__init__ is executed the content
is assigned to self.content via a setter method. This method
accepts either string content (rendered from templates) or
iterator.

When we wrap Prompt.render with additional HttpResponse the
retrurned content is the same but because now we pass an iterator
to the __init__() method another branch of the code is executed.
This branch calls content.close() which in this case is
HttpResponse.close() which fires `signals.request_finished` which
in turn closes the connection to the database.

During testing this is a problem because the connection is closed
right after the offending view returns, which is in the middle of
a test case method. Because the DB connection is now closed all
subsequent queries that are used to assert the application state
(e.g. User.objects.count()) fail with TransactionManagementError!

7059 of 11509 relevant lines covered (61.33%)

2.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 192.1 (TEST_DB=SQLite) 04 Aug 2017 01:57PM UTC 0
61.27
Travis Job 192.1
2 192.2 (TEST_DB=MySQL) 04 Aug 2017 01:57PM UTC 0
61.27
Travis Job 192.2
3 192.3 (TEST_DB=Postgres) 04 Aug 2017 01:57PM UTC 0
61.27
Travis Job 192.3
4 192.4 (TEST_DB=MariaDB) 04 Aug 2017 01:57PM UTC 0
61.27
Travis Job 192.4
Source Files on build 192
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #192
  • c4a1e11a on github
  • Prev Build on django1.10 (#191)
  • Next Build on django1.10 (#193)
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