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

release-engineering / kobo / 219 / 6
48%
master: 51%

Build:
Build:
LAST BUILD BRANCH: kobo-0.20.2
DEFAULT BRANCH: master
Ran 02 Apr 2020 04:27PM UTC
Files 108
Run time 20s
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

02 Apr 2020 04:21PM UTC coverage: 48.398% (+0.03%) from 48.371%
TOXENV=py37-cov-travis

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.

[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.djangoproject.com/en/1.8/ref/class-based-views/base/#djang... (continued)
Pull Request #137: Fix migrations

2931 of 6056 relevant lines covered (48.4%)

0.48 hits per line

Source Files on job 219.6 (TOXENV=py37-cov-travis)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 144
  • Travis Job 219.6
  • 05a9bf39 on github
  • Prev Job for TOXENV=py37-cov-travis on fix_migrations (#208.6)
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