Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Adding test support for Django 2.0 / DRF 3.7, 3.8 #443

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Adding test support for Django 2.0 / DRF 3.7, 3.8 #443

wants to merge 6 commits into from

Conversation

dipasqualew
Copy link

Hello.

I updated the test skip in test_serializers as it was comparing the Django version to 1.10 by checking only the second digit, which fails for Django 2.0. I also updated the tox.ini, .travis.yml and the documentation accordingly.

I removed the 3.3 tests as it fails the test (can't create the virtualenv, the bug is found here: tox-dev/tox#644).

@codecov
Copy link

codecov bot commented Jun 1, 2018

Codecov Report

Merging #443 into master will decrease coverage by 0.3%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #443      +/-   ##
==========================================
- Coverage   90.67%   90.36%   -0.31%     
==========================================
  Files          14       12       -2     
  Lines         847      820      -27     
  Branches       29       29              
==========================================
- Hits          768      741      -27     
  Misses         66       66              
  Partials       13       13
Flag Coverage Δ
#codecov 90.36% <100%> (-0.31%) ⬇️
#dj110 87.07% <100%> (-0.42%) ⬇️
#dj111 87.07% <100%> (-0.42%) ⬇️
#dj18 89.51% <100%> (-0.34%) ⬇️
#dj19 89.51% <100%> (-0.34%) ⬇️
#dj20 89.14% <100%> (?)
#drf31 89.51% <100%> (-0.34%) ⬇️
#drf32 89.51% <100%> (-0.34%) ⬇️
#drf33 89.51% <100%> (-0.34%) ⬇️
#drf34 90.36% <100%> (-0.31%) ⬇️
#drf35 90% <100%> (-0.32%) ⬇️
#drf36 90% <100%> (-0.32%) ⬇️
#drf37 89.14% <100%> (?)
#drf38 89.14% <100%> (?)
#py27 90.36% <100%> (-0.31%) ⬇️
#py33 ?
#py34 90% <100%> (+0.5%) ⬆️
#py35 87.07% <100%> (?)
#py36 89.14% <100%> (?)
Impacted Files Coverage Δ
tests/test_serializers.py 95.45% <100%> (+0.14%) ⬆️
rest_framework_jwt/utils.py
rest_framework_jwt/models.py

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a0bd40...8fe0b2c. Read the comment docs.

@dipasqualew
Copy link
Author

Can I have any feedback on this pull request? Also, are you moving the project to GitLab or staying on GitHub?

Copy link

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One bit needs fixing, but then maybe just switch to using https://github.com/Styria-Digital/django-rest-framework-jwt which is on PyPI as drf-jwt and is a drop-in replacement for the original ;-)

@@ -15,6 +15,9 @@
drf2 = rest_framework.VERSION < StrictVersion('3.0.0')
drf3 = rest_framework.VERSION >= StrictVersion('3.0.0')

django_strict_version = StrictVersion('%s.%s.%s' % django.VERSION[:3])
django2 = django_strict_version > StrictVersion('1.10.0')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then Django 1.11 happened ;-)

In any case, the older PR #398 did this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants