Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
superolegatron committed Sep 13, 2024
1 parent 6cc4bd6 commit aecad9f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 1 addition & 2 deletions BackEnd/authentication/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
validate_password_include_symbols,
)
from validation.validate_profile import validate_profile

from utils.recaptcha import verify_recaptcha
from validation.validate_recaptcha import verify_recaptcha

User = get_user_model()

Expand Down
4 changes: 3 additions & 1 deletion BackEnd/authentication/tests/test_user_autologout.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

class UserLogoutAPITests(APITestCase):
def setUp(self):
patcher = patch("authentication.serializers.verify_recaptcha", return_value=True)
patcher = patch(
"authentication.serializers.verify_recaptcha", return_value=True
)
self.mock_verify_recaptcha = patcher.start()
self.addCleanup(patcher.stop)

Expand Down
4 changes: 3 additions & 1 deletion BackEnd/authentication/tests/test_user_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

class UserLoginAPITests(APITestCase):
def setUp(self):
patcher = patch("authentication.serializers.verify_recaptcha", return_value=True)
patcher = patch(
"authentication.serializers.verify_recaptcha", return_value=True
)
self.mock_verify_recaptcha = patcher.start()
self.addCleanup(patcher.stop)

Expand Down
4 changes: 3 additions & 1 deletion BackEnd/authentication/tests/test_user_logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

class UserLogoutAPITests(APITestCase):
def setUp(self):
patcher = patch("authentication.serializers.verify_recaptcha", return_value=True)
patcher = patch(
"authentication.serializers.verify_recaptcha", return_value=True
)
self.mock_verify_recaptcha = patcher.start()
self.addCleanup(patcher.stop)

Expand Down
4 changes: 3 additions & 1 deletion BackEnd/authentication/tests/test_user_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

class UserRegistrationAPITests(APITestCase):
def setUp(self):
patcher = patch("authentication.serializers.verify_recaptcha", return_value=True)
patcher = patch(
"authentication.serializers.verify_recaptcha", return_value=True
)
self.mock_verify_recaptcha = patcher.start()
self.addCleanup(patcher.stop)

Expand Down
File renamed without changes.

0 comments on commit aecad9f

Please sign in to comment.