Skip to content

Commit

Permalink
feedback and rename scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jan 24, 2024
1 parent ee0451a commit f01b4bd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 21 deletions.
4 changes: 2 additions & 2 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ django-import-export = "*"
google-cloud-logging = "==1.*"
google-auth = "==2.*"
google-cloud-container = "==2.3.0"
"django-anymail[amazon_ses]" = "==7.0.*"
codeforlife = {ref = "enable_disable_otp", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
# "django-anymail[amazon_ses]" = "==7.0.*"
codeforlife = {ref = "v0.9.5", git = "https://github.com/ocadotechnology/codeforlife-package-python.git"}
django = "==3.2.20"
djangorestframework = "==3.13.1"
django-cors-headers = "==4.1.0"
Expand Down
59 changes: 43 additions & 16 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/api/signals/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
All signals for the User model.
"""

import pyotp
from codeforlife.models.signals.pre_save import (
previous_values_are_unequal,
was_created,
)
from codeforlife.user.models import User, UserProfile
from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
import pyotp

# pylint: disable=unused-argument

Expand Down
4 changes: 2 additions & 2 deletions backend/api/tests/signals/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def test_pre_save__otp_secret(self):
first_name="John",
last_name="Doe",
)

profile = UserProfile.objects.create(user=user)

assert profile.otp_secret is not None

def test_pre_save__email(self):
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f01b4bd

Please sign in to comment.