Skip to content

Commit

Permalink
remove unused code and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
George Burton committed Sep 11, 2024
1 parent 4d76116 commit 704abef
Show file tree
Hide file tree
Showing 11 changed files with 395 additions and 1,035 deletions.
1,000 changes: 395 additions & 605 deletions django_app/poetry.lock

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions django_app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ sentry-sdk = {extras = ["django"], version = "^2.13.0"}
django-storages = "^1.14.2"
boto3 = "^1.34.160"
urllib3 = "<2.3"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
requests = "^2.31.0"
python-dotenv = "^1.0.0"
yarl = "^1.9.4"
django-allauth = "^64.0.0"
humanize = "^4.9.0"
channels = {extras = ["daphne"], version = "^4.1.0"}
django-gov-notify = "^0.5.0"
Expand Down Expand Up @@ -61,14 +59,10 @@ pre-commit = "^3.6.2"
freezegun = "^1.2.2"
bandit = "^1.7.8"
django-types = "^0.19.1"
types-python-jose = "^3.3.4.8"
detect-secrets = "^1.4.0"
types-pytz = "^2024.1.0.20240203"
boto3-stubs = "^1.34.160"
requests-mock = "^1.12.1"
playwright = "^1.46.0"
pytest-playwright = "^0.5.1"
axe-playwright-python = "^0.1.4"
django-test-migrations = "^1.3.0"
beautifulsoup4 = "^4.12"

Expand Down
7 changes: 0 additions & 7 deletions django_app/redbox_app/redbox_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from django_use_email_as_username.models import BaseUser, BaseUserManager
from jose import jwt
from yarl import URL

from redbox.models import Settings
Expand Down Expand Up @@ -259,12 +258,6 @@ def save(self, *args, **kwargs):
self.email = self.email.lower()
super().save(*args, **kwargs)

def get_bearer_token(self) -> str:
"""the bearer token expected by the core-api"""
user_uuid = str(self.id)
bearer_token = jwt.encode({"user_uuid": user_uuid}, key=settings.SECRET_KEY)
return f"Bearer {bearer_token}"


class StatusEnum(models.TextChoices):
complete = "complete"
Expand Down
4 changes: 0 additions & 4 deletions django_app/redbox_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
INSTALLED_APPS = [
"daphne",
"redbox_app.redbox_core",
"allauth",
"allauth.account",
"allauth.socialaccount",
"django.contrib.admin.apps.SimpleAdminConfig",
"django.contrib.auth",
"django.contrib.contenttypes",
Expand Down Expand Up @@ -76,7 +73,6 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django_permissions_policy.PermissionsPolicyMiddleware",
"csp.middleware.CSPMiddleware",
"allauth.account.middleware.AccountMiddleware",
"redbox_app.redbox_core.middleware.nocache_middleware",
"redbox_app.redbox_core.middleware.security_header_middleware",
"django_plotly_dash.middleware.BaseMiddleware",
Expand Down
19 changes: 0 additions & 19 deletions django_app/tests_playwright/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions django_app/tests_playwright/_settings.py

This file was deleted.

33 changes: 0 additions & 33 deletions django_app/tests_playwright/_signin.py

This file was deleted.

252 changes: 0 additions & 252 deletions django_app/tests_playwright/pages.py

This file was deleted.

Loading

0 comments on commit 704abef

Please sign in to comment.