chore(api): update dependency dj-rest-auth to v7 (develop)
This commit is contained in:
parent
769a3dc79e
commit
7c33efa1cd
|
@ -1074,21 +1074,21 @@ profile = ["gprof2dot (>=2022.7.29)"]
|
|||
|
||||
[[package]]
|
||||
name = "dj-rest-auth"
|
||||
version = "5.0.2"
|
||||
version = "7.0.1"
|
||||
description = "Authentication and Registration in Django Rest Framework"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
python-versions = ">=3.8"
|
||||
groups = ["main"]
|
||||
files = [
|
||||
{file = "dj-rest-auth-5.0.2.tar.gz", hash = "sha256:aad7d912476169e9991547bf98645344d3939be2d7052098048d819524c115d9"},
|
||||
{file = "dj-rest-auth-7.0.1.tar.gz", hash = "sha256:3f8c744cbcf05355ff4bcbef0c8a63645da38e29a0fdef3c3332d4aced52fb90"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
Django = ">=3.2"
|
||||
Django = ">=4.2,<6.0"
|
||||
djangorestframework = ">=3.13.0"
|
||||
|
||||
[package.extras]
|
||||
with-social = ["django-allauth (>=0.56.0,<0.58.0)"]
|
||||
with-social = ["django-allauth[socialaccount] (>=64.0.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "django"
|
||||
|
@ -4807,4 +4807,4 @@ typesense = ["typesense"]
|
|||
[metadata]
|
||||
lock-version = "2.1"
|
||||
python-versions = "^3.10,<3.14"
|
||||
content-hash = "092b2c12c3952bb5158537c62597d9ea075c4565c41f4a25164f8973aa7f0c94"
|
||||
content-hash = "d1d7371777bff92e50228e6d9966a3e9fb49a6fb39ad004c74df67186d2cc542"
|
||||
|
|
|
@ -28,7 +28,7 @@ funkwhale-manage = 'funkwhale_api.main:main'
|
|||
python = "^3.10,<3.14"
|
||||
|
||||
# Django
|
||||
dj-rest-auth = "5.0.2"
|
||||
dj-rest-auth = "7.0.1"
|
||||
django = "4.2.9"
|
||||
django-allauth = "0.63.6"
|
||||
django-cache-memoize = "0.1.10"
|
||||
|
|
|
@ -38,7 +38,7 @@ def test_can_create_user_via_api_mail_verification_mandatory(
|
|||
}
|
||||
preferences["users__registration_enabled"] = True
|
||||
response = api_client.post(url, data)
|
||||
assert response.status_code == 204
|
||||
assert response.status_code == 201
|
||||
|
||||
u = User.objects.get(email="test1@test.com")
|
||||
assert u.username == "test1"
|
||||
|
@ -102,7 +102,7 @@ def test_can_signup_with_invitation(preferences, factories, api_client):
|
|||
}
|
||||
preferences["users__registration_enabled"] = False
|
||||
response = api_client.post(url, data)
|
||||
assert response.status_code == 204
|
||||
assert response.status_code == 201
|
||||
u = User.objects.get(email="test1@test.com")
|
||||
assert u.username == "test1"
|
||||
assert u.invitation == invitation
|
||||
|
@ -322,7 +322,7 @@ def test_creating_user_creates_actor_as_well(
|
|||
mocker.patch("funkwhale_api.users.models.create_actor", return_value=actor)
|
||||
response = api_client.post(url, data)
|
||||
|
||||
assert response.status_code == 204
|
||||
assert response.status_code == 201
|
||||
|
||||
user = User.objects.get(username="test1")
|
||||
|
||||
|
@ -343,7 +343,7 @@ def test_creating_user_sends_confirmation_email(
|
|||
preferences["instance__name"] = "Hello world"
|
||||
response = api_client.post(url, data)
|
||||
|
||||
assert response.status_code == 204
|
||||
assert response.status_code == 201
|
||||
|
||||
confirmation_message = mailoutbox[-1]
|
||||
assert "Hello world" in confirmation_message.body
|
||||
|
@ -425,7 +425,7 @@ def test_signup_with_approval_enabled(
|
|||
}
|
||||
on_commit = mocker.patch("funkwhale_api.common.utils.on_commit")
|
||||
response = api_client.post(url, data, format="json")
|
||||
assert response.status_code == 204
|
||||
assert response.status_code == 201
|
||||
u = User.objects.get(email="test1@test.com")
|
||||
assert u.username == "test1"
|
||||
assert u.is_active is False
|
||||
|
|
Loading…
Reference in New Issue