mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
community/py3-django-allauth: upgrade to 65.9.0
Adds patch removing new test-unit dependencies to ninja
This commit is contained in:
parent
4eb0cceaa5
commit
05f22d68a5
3 changed files with 38 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-allauth
|
||||
_pyname="django-allauth"
|
||||
pkgver=65.8.1
|
||||
pkgver=65.9.0
|
||||
pkgrel=0
|
||||
arch="noarch"
|
||||
pkgdesc="Integrated set of Django applications addressing SSO"
|
||||
|
@ -35,6 +35,7 @@ checkdepends="
|
|||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/pennersr/$_pyname/archive/$pkgver.tar.gz
|
||||
rollback-c99acb-skip-certain-tests.patch
|
||||
rollback-cf4507-feat-idp-ninja.patch
|
||||
"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
subpackages="$pkgname-pyc"
|
||||
|
@ -50,17 +51,22 @@ check() {
|
|||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
|
||||
# test_security.py: requires ninja module
|
||||
|
||||
# allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource - assert 404 == <HTTPStatus.OK: 200>
|
||||
# allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden - assert 404 == <HTTPStatus.UNAUTHORIZED: 401>
|
||||
case "$CARCH" in
|
||||
loongarch64)
|
||||
.testenv/bin/python3 -m pytest -v \
|
||||
--ignore="allauth/headless/contrib/ninja/tests/test_security.py" \
|
||||
--deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login \
|
||||
--deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login_with_extra_attributes
|
||||
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource \
|
||||
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden
|
||||
;;
|
||||
*)
|
||||
.testenv/bin/python3 -m pytest -v \
|
||||
--ignore-glob=allauth/headless/contrib/ninja/tests/test_security.py
|
||||
--ignore-glob=allauth/headless/contrib/ninja/tests/test_security.py \
|
||||
--deselect allauth/socialaccount/providers/openid/tests.py::OpenIDTests::test_login \
|
||||
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource \
|
||||
--deselect allauth/idp/oidc/contrib/ninja/tests/test_views.py::test_resource_forbidden
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -70,6 +76,7 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
655ff5e7cf5bb60eae6a252b6bac4e2a3dee4d507131834fddc2af3ea5ea704e9a07e9243f5987b26d718ec0bc101cc4d2b2f6e4d2b9c19eacb2c1e04879e92e py3-django-allauth-65.8.1.tar.gz
|
||||
83773454d0582d3f29025bc63e09b0bc16c17c2bc50f3ad54e66d28519be73626f537a873fa50d5b56944852ca6089a3eb57fb2f5990abf5bdf9fbcc2ac68bfc rollback-c99acb-skip-certain-tests.patch
|
||||
aaa555c8dbd5aa61f72375ae3b6e73edeb3b947ecd3dc5917dfb7e51c9e28a6424e3779f1f0c107f9571deb6df4ace340c9d564443db03a631e659f78899ff33 py3-django-allauth-65.9.0.tar.gz
|
||||
5c0ac63e8db4daf0a4c4239446adf4c091492986f2a7e9a3e804790451e56a1e56e6c21720264a2e3f6579588e21fc91142679ffdfb70fd557cfecbc016564d1 rollback-c99acb-skip-certain-tests.patch
|
||||
d5d288d16a18762eab9522ee47c69037a22a662d74bc043f9a98edbbb6b362bb4c600b8a6955ce837b5a3e1d23860c253b50ab7fbd1c2c9b688b7d066b0a3aaf rollback-cf4507-feat-idp-ninja.patch
|
||||
"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
diff --git a/allauth/conftest.py.orig b/allauth/conftest.py
|
||||
index c1ea32d5dfa..f2c19e71f37 100644
|
||||
index 00c2b78d8f2..df7dc57330f 100644
|
||||
--- a/allauth/conftest.py.orig
|
||||
+++ b/allauth/conftest.py
|
||||
@@ -1,13 +1,11 @@
|
||||
|
@ -16,10 +16,11 @@ index c1ea32d5dfa..f2c19e71f37 100644
|
|||
from unittest.mock import Mock, PropertyMock, patch
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
@@ -471,35 +469,6 @@ def user_with_phone(user, phone):
|
||||
@@ -470,38 +468,6 @@ def user_with_phone(user, phone):
|
||||
get_adapter().set_phone(user, phone, True)
|
||||
return user
|
||||
|
||||
|
||||
-
|
||||
-def pytest_ignore_collect(path, config):
|
||||
- from tests.common.settings import INSTALLED_SOCIALACCOUNT_APPS
|
||||
-
|
||||
|
@ -36,7 +37,9 @@ index c1ea32d5dfa..f2c19e71f37 100644
|
|||
- "mfa",
|
||||
- "usersessions",
|
||||
- "socialaccount",
|
||||
- "idp",
|
||||
- ),
|
||||
- "tests.headless_only.settings": ("idp",),
|
||||
- }
|
||||
- dsm = os.getenv("DJANGO_SETTINGS_MODULE")
|
||||
- skipped_paths = tests_to_skip.get(dsm)
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
--- b/tests/common/idp/ninja/urls.py
|
||||
+++ /dev/null
|
||||
@@ -1,8 +0,0 @@
|
||||
-from django.urls import path
|
||||
-
|
||||
-from .views import api
|
||||
-
|
||||
-
|
||||
-urlpatterns = [
|
||||
- path("", api.urls),
|
||||
-]
|
||||
--- b/tests/common/idp/urls.py
|
||||
+++ a/tests/common/idp/urls.py
|
||||
@@ -3,5 +3,4 @@
|
||||
|
||||
urlpatterns = [
|
||||
path("drf/", include("tests.common.idp.rest_framework.urls")),
|
||||
- path("ninja/", include("tests.common.idp.ninja.urls")),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue