Skip to content

Commit

Permalink
fix issues to upgrade to django 4.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
etchegom committed Aug 21, 2024
1 parent 38c9d28 commit 18dd061
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
7 changes: 1 addition & 6 deletions conventions/tests/test_task.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pathlib import Path
from unittest.mock import Mock, patch

from django.conf import settings
from django.core import mail
from django.core.files.storage import default_storage
from django.test import TestCase, override_settings
Expand All @@ -27,11 +26,7 @@
class GenerateAndSendTest(TestCase):
def _create_pdf_file_in_storage(self, convention_uuid: str):
dst_path = Path(
settings.MEDIA_ROOT,
"conventions",
convention_uuid,
"convention_docs",
f"{convention_uuid}.pdf",
"conventions", convention_uuid, "convention_docs", f"{convention_uuid}.pdf"
)
with (Path(__file__).parent / "fixtures" / "convention.pdf").open("r") as f:
default_storage.save(dst_path, f)
Expand Down
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ distlib==0.3.6 \
--hash=sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46 \
--hash=sha256:f35c4b692542ca110de7ef0bea44d73981caeb34ca0b9b6b2e6d7790dda8f80e
# via virtualenv
django==4.2.13 \
--hash=sha256:837e3cf1f6c31347a1396a3f6b65688f2b4bb4a11c580dcb628b5afe527b68a5 \
--hash=sha256:a17fcba2aad3fc7d46fdb23215095dbbd64e6174bf4589171e732b18b07e426a
django==4.2.15 \
--hash=sha256:61ee4a130efb8c451ef3467c67ca99fdce400fedd768634efc86a68c18d80d30 \
--hash=sha256:c77f926b81129493961e19c0e02188f8d07c112a1162df69bfab178ae447f94a
# via
# -c requirements.txt
# django-browser-reload
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ django-simple-history
django-sql-explorer[xls]
django-storages
django-waffle
Django<5.0
Django==4.2.15
djangorestframework
djangorestframework-simplejwt
docxtpl
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dj-database-url==2.2.0 \
dj-static==0.0.6 \
--hash=sha256:032ec1c532617922e6e3e956d504a6fb1acce4fc1c7c94612d0fda21828ce8ef
# via -r requirements.in
django==4.2.13 \
--hash=sha256:837e3cf1f6c31347a1396a3f6b65688f2b4bb4a11c580dcb628b5afe527b68a5 \
--hash=sha256:a17fcba2aad3fc7d46fdb23215095dbbd64e6174bf4589171e732b18b07e426a
django==4.2.15 \
--hash=sha256:61ee4a130efb8c451ef3467c67ca99fdce400fedd768634efc86a68c18d80d30 \
--hash=sha256:c77f926b81129493961e19c0e02188f8d07c112a1162df69bfab178ae447f94a
# via
# -r requirements.in
# dj-database-url
Expand Down

0 comments on commit 18dd061

Please sign in to comment.