Fixes tests not running explicitly declared versions

This commit is contained in:
Michael 2020-08-09 13:59:28 -05:00
parent 0b59a88d04
commit 32892f3177
4 changed files with 9 additions and 16 deletions

View File

@ -7,14 +7,14 @@ jobs:
docker: docker:
- image: circleci/python:3.8.0 - image: circleci/python:3.8.0
environment: environment:
DJANGO_VERSION: 3.0.3 DJANGO_VERSION: 3.1
DRF: 3.11 DRF: 3.11.1
executor: docker/docker executor: docker/docker
steps: steps:
- checkout - checkout
- run: - run:
command: pip install --user -r dev-requirements.txt command: pip install --user Django==$DJANGO_VERSION djangorestframework==$DRF
name: "Pip Install dev requirements" name: "Pip install version-specific Django + DRF"
- run: - run:
command: pip install --user -r dj_rest_auth/tests/requirements.pip command: pip install --user -r dj_rest_auth/tests/requirements.pip
name: "Pip Install test requirements" name: "Pip Install test requirements"

View File

@ -1,6 +0,0 @@
--editable .
responses>=0.5.0
djangorestframework-simplejwt==4.4.0
django-allauth>=0.25.0
coveralls>=1.11.1
unittest-xml-reporting>=3.0.2

View File

@ -2,3 +2,5 @@ django-allauth>=0.25.0
responses>=0.5.0 responses>=0.5.0
flake8==2.4.0 flake8==2.4.0
djangorestframework-simplejwt==4.4.0 djangorestframework-simplejwt==4.4.0
unittest-xml-reporting>=3.0.2
coveralls>=1.11.1

View File

@ -6,16 +6,13 @@ from django.conf import settings
urlpatterns = [ urlpatterns = [
# URLs that do not require a session or valid token # URLs that do not require a session or valid token
path('password/reset/', PasswordResetView.as_view(), path('password/reset/', PasswordResetView.as_view(), name='rest_password_reset'),
name='rest_password_reset'), path('password/reset/confirm/', PasswordResetConfirmView.as_view(), name='rest_password_reset_confirm'),
path('password/reset/confirm/', PasswordResetConfirmView.as_view(),
name='rest_password_reset_confirm'),
path('login/', LoginView.as_view(), name='rest_login'), path('login/', LoginView.as_view(), name='rest_login'),
# URLs that require a user to be logged in with a valid session / token. # URLs that require a user to be logged in with a valid session / token.
path('logout/', LogoutView.as_view(), name='rest_logout'), path('logout/', LogoutView.as_view(), name='rest_logout'),
path('user/', UserDetailsView.as_view(), name='rest_user_details'), path('user/', UserDetailsView.as_view(), name='rest_user_details'),
path('password/change/', PasswordChangeView.as_view(), path('password/change/', PasswordChangeView.as_view(), name='rest_password_change'),
name='rest_password_change'),
] ]
if getattr(settings, 'REST_USE_JWT', False): if getattr(settings, 'REST_USE_JWT', False):