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

release-engineering / kobo / 221
48%
master: 51%

Build:
Build:
LAST BUILD BRANCH: kobo-0.20.2
DEFAULT BRANCH: master
Ran 02 Apr 2020 04:34PM UTC
Jobs 1
Files 108
Run time 2min
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
221

Pull #137

travis-ci

web-flow
Fix tests for Django 1.11

All the changes were made in a way that doesn't break the
compatibility of older Django versions. Following changes were
made to ensure that all tests pass for Django 1.11:

- _set_choices method was copied directly to StateEnumField from
  Django's ChoiceField. Using another classes setter method broke
  the reference to the instance. Since the method is copied, there
  should be no functionality changes.

- Django's method render_to_response doesn't exist in version 1.11,
  so it was changed to render. Render is available in the older
  versions of Django [1], and should have the same functionality.
  Also, slight change had to be done to the testcase
  'test_view_zipped_big_html_context' to account for this new method.

- Template loading has a different configuration in the newer
  versions of Django, so dual code path for old and new styles were
  created. 'APP_DIRS' was added because Django uses a default template
  for its logout page.

- HttpRequest.REQUEST was removed in the newer Django versions [2], so
  it was replaced by searching POST followed by GET, as specified in
  the documentation.

- 'permanent' parameter is now explicitly set in the
  'RedirectView.as_view' method because the default value changes
  in Django 1.9 [3].

- Testcases 'test_krb5login' and 'test_krb5login_redirect_to' now
  accept both absolute and relative urls in the 'Location' of the
  redirect response. This is because higher versions of Django return
  relative addresses. It's acceptable by the RFC standard [4].

- The 'TestFixturesJSONField' is skipped Django 1.9+. This is because
  the 'syncdb' command was removed in Django 1.9 [5], so testing the
  automatic fixture loading doesn't make sense.

- Added Django 1.11 testing to the Travis CI.

[1] https://docs.djangoproject.com/en/1.8/topics/http/shortcuts/#render
[2] https://docs.djangoproject.com/en/1.8/ref/request-response/#django.http.HttpRequest.REQUEST
[3] https://docs.djangoproje... (continued)
Pull Request #137: Fix migrations

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

2931 of 6056 relevant lines covered (48.4%)

0.48 hits per line

Jobs
ID Job ID Ran Files Coverage
11 221.11 (TOXENV=py37-cov-travis) 02 Apr 2020 04:34PM UTC 0
48.4
Travis Job 221.11
Source Files on build 221
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #221
  • Pull Request #137
  • PR Base - master (#208)
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