From 537c265fab1dd35c2cbb555196b1e02f03581291 Mon Sep 17 00:00:00 2001 From: jhn27 Date: Thu, 21 Dec 2023 15:15:47 +1300 Subject: [PATCH] switch to pypdf from discontinued pypdf2 (which was merged into pypdf) --- .../tests/resources/management/test_makeresources_command.py | 2 +- csunplugged/tests/resources/utils/test_BaseResourceGenerator.py | 2 +- requirements/test.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csunplugged/tests/resources/management/test_makeresources_command.py b/csunplugged/tests/resources/management/test_makeresources_command.py index 5880f5df6..6a179035b 100644 --- a/csunplugged/tests/resources/management/test_makeresources_command.py +++ b/csunplugged/tests/resources/management/test_makeresources_command.py @@ -4,7 +4,7 @@ from django.core import management from django.test import tag, override_settings from tests.resources.ResourcesTestDataGenerator import ResourcesTestDataGenerator -from PyPDF2 import PdfReader +from pypdf import PdfReader import os.path import shutil from resources.models import Resource diff --git a/csunplugged/tests/resources/utils/test_BaseResourceGenerator.py b/csunplugged/tests/resources/utils/test_BaseResourceGenerator.py index efbf457fd..1efefe5f3 100644 --- a/csunplugged/tests/resources/utils/test_BaseResourceGenerator.py +++ b/csunplugged/tests/resources/utils/test_BaseResourceGenerator.py @@ -9,7 +9,7 @@ from resources.utils.BaseResourceGenerator import BaseResourceGenerator from resources.utils.resource_parameters import ResourceParameter, EnumResourceParameter from io import BytesIO -from PyPDF2 import PdfReader +from pypdf import PdfReader @tag("resource") diff --git a/requirements/test.txt b/requirements/test.txt index b13101ea3..d95250845 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -11,4 +11,4 @@ coverage==7.3.3 django-test-without-migrations==0.6 # PDF file checking -PyPDF2==3.0.1 +pypdf==3.17.3