Browse Source

Upgrade packages for backend

pull/604/head
Guillaume Vincent 3 years ago
parent
commit
306cba1bc4
2 changed files with 8 additions and 7 deletions
  1. +4
    -3
      containers/backend/api/tests/factories.py
  2. +4
    -4
      containers/backend/requirements.txt

+ 4
- 3
containers/backend/api/tests/factories.py View File

@@ -1,9 +1,10 @@
import factory import factory
from factory.django import DjangoModelFactory


from api import models from api import models




class UserFactory(factory.DjangoModelFactory):
class UserFactory(DjangoModelFactory):
class Meta: class Meta:
model = models.LessPassUser model = models.LessPassUser


@@ -16,7 +17,7 @@ class AdminFactory(UserFactory):
is_admin = True is_admin = True




class PasswordFactory(factory.DjangoModelFactory):
class PasswordFactory(DjangoModelFactory):
class Meta: class Meta:
model = models.Password model = models.Password


@@ -25,7 +26,7 @@ class PasswordFactory(factory.DjangoModelFactory):
site = "lesspass.com" site = "lesspass.com"




class EncryptedPasswordProfileFactory(factory.DjangoModelFactory):
class EncryptedPasswordProfileFactory(DjangoModelFactory):
class Meta: class Meta:
model = models.EncryptedPasswordProfile model = models.EncryptedPasswordProfile




+ 4
- 4
containers/backend/requirements.txt View File

@@ -1,10 +1,10 @@
Django==3.1.6
Django==3.1.7
django-cors-middleware==1.5.0 django-cors-middleware==1.5.0
djangorestframework==3.11.0
djangorestframework==3.12.2
djangorestframework-simplejwt==4.6.0 djangorestframework-simplejwt==4.6.0
djoser==2.0.3
djoser==2.1.0
envparse==0.2.0 envparse==0.2.0
gunicorn==20.0.4 gunicorn==20.0.4
psycopg2-binary==2.8.6 psycopg2-binary==2.8.6
# tests # tests
factory-boy==2.12.0
factory-boy==3.2.0

Loading…
Cancel
Save