Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
d8e88621
Verified
Commit
d8e88621
authored
Sep 26, 2021
by
Baptiste Beauplat
Browse files
Replace INTERNAL_RESET_URL_TOKEN by its actual static value (removed in django3)
parent
8182a349
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/functional/accounts/test_reset.py
View file @
d8e88621
...
@@ -27,8 +27,7 @@
...
@@ -27,8 +27,7 @@
# OTHER DEALINGS IN THE SOFTWARE.
# OTHER DEALINGS IN THE SOFTWARE.
from
django.contrib.auth.tokens
import
PasswordResetTokenGenerator
from
django.contrib.auth.tokens
import
PasswordResetTokenGenerator
from
django.contrib.auth.views
import
INTERNAL_RESET_URL_TOKEN
,
\
from
django.contrib.auth.views
import
INTERNAL_RESET_SESSION_TOKEN
INTERNAL_RESET_SESSION_TOKEN
from
django.core
import
mail
from
django.core
import
mail
from
django.urls
import
reverse
from
django.urls
import
reverse
from
django.utils.encoding
import
force_bytes
from
django.utils.encoding
import
force_bytes
...
@@ -67,7 +66,7 @@ class TestResetController(TestController):
...
@@ -67,7 +66,7 @@ class TestResetController(TestController):
response
=
self
.
client
.
post
(
reverse
(
'password_reset_confirm'
,
kwargs
=
{
response
=
self
.
client
.
post
(
reverse
(
'password_reset_confirm'
,
kwargs
=
{
'uidb64'
:
uid
,
'uidb64'
:
uid
,
'token'
:
INTERNAL_RESET_URL_TOKEN
'token'
:
'set-password'
}),
{
}),
{
'new_password1'
:
'newpass'
,
'new_password1'
:
'newpass'
,
'new_password2'
:
'newpass'
,
'new_password2'
:
'newpass'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment