diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
commit | eeaddb27560d723ca7d61359744ceb2709fccd2d (patch) | |
tree | 04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /pyblackbird_cc/resources | |
parent | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff) |
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to '')
-rw-r--r-- | alphabetlearning/resources/__init__.py (renamed from pyblackbird_cc/resources/__init__.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/admin.py (renamed from pyblackbird_cc/resources/admin.py) | 12 | ||||
-rw-r--r-- | alphabetlearning/resources/apps.py (renamed from pyblackbird_cc/resources/apps.py) | 2 | ||||
-rw-r--r-- | alphabetlearning/resources/factories.py (renamed from pyblackbird_cc/resources/factories.py) | 2 | ||||
-rw-r--r-- | alphabetlearning/resources/forms.py (renamed from pyblackbird_cc/resources/forms.py) | 8 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0001_initial.py (renamed from pyblackbird_cc/resources/migrations/0001_initial.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py (renamed from pyblackbird_cc/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0003_alter_resource_description.py (renamed from pyblackbird_cc/resources/migrations/0003_alter_resource_description.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py (renamed from pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py (renamed from pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0006_resource_card_description_and_more.py (renamed from pyblackbird_cc/resources/migrations/0006_resource_card_description_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0007_alter_resource_feature_slot.py (renamed from pyblackbird_cc/resources/migrations/0007_alter_resource_feature_slot.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0008_alter_resource_card_description.py (renamed from pyblackbird_cc/resources/migrations/0008_alter_resource_card_description.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0009_alter_resource_feature_slot.py (renamed from pyblackbird_cc/resources/migrations/0009_alter_resource_feature_slot.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0010_alter_resource_age_range.py (renamed from pyblackbird_cc/resources/migrations/0010_alter_resource_age_range.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0011_alter_resource_curriculum.py (renamed from pyblackbird_cc/resources/migrations/0011_alter_resource_curriculum.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0012_resourcecategory_colour_css_class.py (renamed from pyblackbird_cc/resources/migrations/0012_resourcecategory_colour_css_class.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0013_resourcecategory_badge_foreground_colour.py (renamed from pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py (renamed from pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0015_resourcesubcategory.py (renamed from pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py (renamed from pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py (renamed from pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0018_alter_resource_subcategories.py (renamed from pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py (renamed from pyblackbird_cc/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/migrations/__init__.py (renamed from pyblackbird_cc/resources/migrations/__init__.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/models.py (renamed from pyblackbird_cc/resources/models.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/s3.py (renamed from pyblackbird_cc/resources/s3.py) | 2 | ||||
-rw-r--r-- | alphabetlearning/resources/services.py (renamed from pyblackbird_cc/resources/services.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/templatetags/__init__.py (renamed from pyblackbird_cc/resources/templatetags/__init__.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/templatetags/markdown_extras.py (renamed from pyblackbird_cc/resources/templatetags/markdown_extras.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/__init__.py (renamed from pyblackbird_cc/resources/tests/__init__.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/test_file_processing.py (renamed from pyblackbird_cc/resources/tests/test_file_processing.py) | 2 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/test_forms.py (renamed from pyblackbird_cc/resources/tests/test_forms.py) | 8 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/test_models.py (renamed from pyblackbird_cc/resources/tests/test_models.py) | 19 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/test_views.py (renamed from pyblackbird_cc/resources/tests/test_views.py) | 14 | ||||
-rw-r--r-- | alphabetlearning/resources/tests/testdata/seven_page.pdf (renamed from pyblackbird_cc/resources/tests/testdata/seven_page.pdf) | bin | 153396 -> 153396 bytes | |||
-rw-r--r-- | alphabetlearning/resources/tests/testdata/test_small_file.pdf (renamed from pyblackbird_cc/resources/tests/testdata/test_small_file.pdf) | bin | 14147 -> 14147 bytes | |||
-rw-r--r-- | alphabetlearning/resources/tests/testdata/two_page.pdf (renamed from pyblackbird_cc/resources/tests/testdata/two_page.pdf) | bin | 186265 -> 186265 bytes | |||
-rw-r--r-- | alphabetlearning/resources/urls.py (renamed from pyblackbird_cc/resources/urls.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/utils.py (renamed from pyblackbird_cc/resources/utils.py) | 0 | ||||
-rw-r--r-- | alphabetlearning/resources/views.py (renamed from pyblackbird_cc/resources/views.py) | 0 |
41 files changed, 34 insertions, 35 deletions
diff --git a/pyblackbird_cc/resources/__init__.py b/alphabetlearning/resources/__init__.py index e69de29..e69de29 100644 --- a/pyblackbird_cc/resources/__init__.py +++ b/alphabetlearning/resources/__init__.py diff --git a/pyblackbird_cc/resources/admin.py b/alphabetlearning/resources/admin.py index 0aa0c68..b0e08dc 100644 --- a/pyblackbird_cc/resources/admin.py +++ b/alphabetlearning/resources/admin.py @@ -1,12 +1,12 @@ # Register your models here. from django.contrib import admin -from pyblackbird_cc.resources.models import PDFPageSnapshot -from pyblackbird_cc.resources.models import PDFResource -from pyblackbird_cc.resources.models import Resource -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceSubcategory -from pyblackbird_cc.resources.models import ResourceType +from alphabetlearning.resources.models import PDFPageSnapshot +from alphabetlearning.resources.models import PDFResource +from alphabetlearning.resources.models import Resource +from alphabetlearning.resources.models import ResourceCategory +from alphabetlearning.resources.models import ResourceSubcategory +from alphabetlearning.resources.models import ResourceType @admin.register(ResourceType) diff --git a/pyblackbird_cc/resources/apps.py b/alphabetlearning/resources/apps.py index 2756fc0..44ebd69 100644 --- a/pyblackbird_cc/resources/apps.py +++ b/alphabetlearning/resources/apps.py @@ -3,4 +3,4 @@ from django.apps import AppConfig class ResourcesConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" - name = "pyblackbird_cc.resources" + name = "alphabetlearning.resources" diff --git a/pyblackbird_cc/resources/factories.py b/alphabetlearning/resources/factories.py index fef8cfb..4075ab1 100644 --- a/pyblackbird_cc/resources/factories.py +++ b/alphabetlearning/resources/factories.py @@ -31,7 +31,7 @@ class PDFPageSnapshotModelFactory(factory.django.DjangoModelFactory): name = factory.Sequence(lambda n: f"pdf_page_snapshot_{n}") file_name = factory.Sequence(lambda n: f"pdf_page_snapshot_{n}.jpg") - pdf_file = factory.SubFactory("pyblackbird_cc.resources.factories.PDFResourceModelFactory") + pdf_file = factory.SubFactory("alphabetlearning.resources.factories.PDFResourceModelFactory") class ResourceModelFactory(factory.django.DjangoModelFactory): diff --git a/pyblackbird_cc/resources/forms.py b/alphabetlearning/resources/forms.py index 2774da5..35632bd 100644 --- a/pyblackbird_cc/resources/forms.py +++ b/alphabetlearning/resources/forms.py @@ -9,10 +9,10 @@ from crispy_forms.layout import Layout from crispy_forms.layout import Submit from django import forms -from pyblackbird_cc.resources.models import Resource -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceSubcategory -from pyblackbird_cc.resources.models import ResourceType +from alphabetlearning.resources.models import Resource +from alphabetlearning.resources.models import ResourceCategory +from alphabetlearning.resources.models import ResourceSubcategory +from alphabetlearning.resources.models import ResourceType from .models import AGE_RANGE_CHOICES from .models import CURRICULUM_CHOICES diff --git a/pyblackbird_cc/resources/migrations/0001_initial.py b/alphabetlearning/resources/migrations/0001_initial.py index 812c98f..812c98f 100644 --- a/pyblackbird_cc/resources/migrations/0001_initial.py +++ b/alphabetlearning/resources/migrations/0001_initial.py diff --git a/pyblackbird_cc/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py b/alphabetlearning/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py index 3b70450..3b70450 100644 --- a/pyblackbird_cc/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py +++ b/alphabetlearning/resources/migrations/0002_alter_resource_additional_resource_category_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0003_alter_resource_description.py b/alphabetlearning/resources/migrations/0003_alter_resource_description.py index f0ed99c..f0ed99c 100644 --- a/pyblackbird_cc/resources/migrations/0003_alter_resource_description.py +++ b/alphabetlearning/resources/migrations/0003_alter_resource_description.py diff --git a/pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py b/alphabetlearning/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py index d595b62..d595b62 100644 --- a/pyblackbird_cc/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py +++ b/alphabetlearning/resources/migrations/0004_resource_feature_slot_1_resource_feature_slot_2_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py b/alphabetlearning/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py index 2937c50..2937c50 100644 --- a/pyblackbird_cc/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py +++ b/alphabetlearning/resources/migrations/0005_rename_feature_slot_1_resource_feature_slot_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0006_resource_card_description_and_more.py b/alphabetlearning/resources/migrations/0006_resource_card_description_and_more.py index d343e76..d343e76 100644 --- a/pyblackbird_cc/resources/migrations/0006_resource_card_description_and_more.py +++ b/alphabetlearning/resources/migrations/0006_resource_card_description_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0007_alter_resource_feature_slot.py b/alphabetlearning/resources/migrations/0007_alter_resource_feature_slot.py index c5c17c7..c5c17c7 100644 --- a/pyblackbird_cc/resources/migrations/0007_alter_resource_feature_slot.py +++ b/alphabetlearning/resources/migrations/0007_alter_resource_feature_slot.py diff --git a/pyblackbird_cc/resources/migrations/0008_alter_resource_card_description.py b/alphabetlearning/resources/migrations/0008_alter_resource_card_description.py index 18e5739..18e5739 100644 --- a/pyblackbird_cc/resources/migrations/0008_alter_resource_card_description.py +++ b/alphabetlearning/resources/migrations/0008_alter_resource_card_description.py diff --git a/pyblackbird_cc/resources/migrations/0009_alter_resource_feature_slot.py b/alphabetlearning/resources/migrations/0009_alter_resource_feature_slot.py index ca082d4..ca082d4 100644 --- a/pyblackbird_cc/resources/migrations/0009_alter_resource_feature_slot.py +++ b/alphabetlearning/resources/migrations/0009_alter_resource_feature_slot.py diff --git a/pyblackbird_cc/resources/migrations/0010_alter_resource_age_range.py b/alphabetlearning/resources/migrations/0010_alter_resource_age_range.py index 49c7a2c..49c7a2c 100644 --- a/pyblackbird_cc/resources/migrations/0010_alter_resource_age_range.py +++ b/alphabetlearning/resources/migrations/0010_alter_resource_age_range.py diff --git a/pyblackbird_cc/resources/migrations/0011_alter_resource_curriculum.py b/alphabetlearning/resources/migrations/0011_alter_resource_curriculum.py index 5e1b193..5e1b193 100644 --- a/pyblackbird_cc/resources/migrations/0011_alter_resource_curriculum.py +++ b/alphabetlearning/resources/migrations/0011_alter_resource_curriculum.py diff --git a/pyblackbird_cc/resources/migrations/0012_resourcecategory_colour_css_class.py b/alphabetlearning/resources/migrations/0012_resourcecategory_colour_css_class.py index b48ba61..b48ba61 100644 --- a/pyblackbird_cc/resources/migrations/0012_resourcecategory_colour_css_class.py +++ b/alphabetlearning/resources/migrations/0012_resourcecategory_colour_css_class.py diff --git a/pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py b/alphabetlearning/resources/migrations/0013_resourcecategory_badge_foreground_colour.py index 7644a5c..7644a5c 100644 --- a/pyblackbird_cc/resources/migrations/0013_resourcecategory_badge_foreground_colour.py +++ b/alphabetlearning/resources/migrations/0013_resourcecategory_badge_foreground_colour.py diff --git a/pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py b/alphabetlearning/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py index 7573bf2..7573bf2 100644 --- a/pyblackbird_cc/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py +++ b/alphabetlearning/resources/migrations/0014_remove_resource_additional_resource_category_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py b/alphabetlearning/resources/migrations/0015_resourcesubcategory.py index 3eaada4..3eaada4 100644 --- a/pyblackbird_cc/resources/migrations/0015_resourcesubcategory.py +++ b/alphabetlearning/resources/migrations/0015_resourcesubcategory.py diff --git a/pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py b/alphabetlearning/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py index 77a3f27..77a3f27 100644 --- a/pyblackbird_cc/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py +++ b/alphabetlearning/resources/migrations/0016_alter_resourcesubcategory_options_and_more.py diff --git a/pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py b/alphabetlearning/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py index bc4d1e4..bc4d1e4 100644 --- a/pyblackbird_cc/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py +++ b/alphabetlearning/resources/migrations/0017_rename_additional_resource_category_resource_subcategories.py diff --git a/pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py b/alphabetlearning/resources/migrations/0018_alter_resource_subcategories.py index c981512..c981512 100644 --- a/pyblackbird_cc/resources/migrations/0018_alter_resource_subcategories.py +++ b/alphabetlearning/resources/migrations/0018_alter_resource_subcategories.py diff --git a/pyblackbird_cc/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py b/alphabetlearning/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py index 511d747..511d747 100644 --- a/pyblackbird_cc/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py +++ b/alphabetlearning/resources/migrations/0019_alter_pdfpagesnapshot_options_and_more.py diff --git a/pyblackbird_cc/resources/migrations/__init__.py b/alphabetlearning/resources/migrations/__init__.py index e69de29..e69de29 100644 --- a/pyblackbird_cc/resources/migrations/__init__.py +++ b/alphabetlearning/resources/migrations/__init__.py diff --git a/pyblackbird_cc/resources/models.py b/alphabetlearning/resources/models.py index 3dfad06..3dfad06 100644 --- a/pyblackbird_cc/resources/models.py +++ b/alphabetlearning/resources/models.py diff --git a/pyblackbird_cc/resources/s3.py b/alphabetlearning/resources/s3.py index 3693b55..af367e2 100644 --- a/pyblackbird_cc/resources/s3.py +++ b/alphabetlearning/resources/s3.py @@ -7,7 +7,7 @@ from boto3 import Session from botocore.exceptions import ClientError from django.conf import settings -from pyblackbird_cc.resources.utils import _get_pdf_collection_type +from alphabetlearning.resources.utils import _get_pdf_collection_type logger = logging.getLogger(__name__) diff --git a/pyblackbird_cc/resources/services.py b/alphabetlearning/resources/services.py index 03c53af..03c53af 100644 --- a/pyblackbird_cc/resources/services.py +++ b/alphabetlearning/resources/services.py diff --git a/pyblackbird_cc/resources/templatetags/__init__.py b/alphabetlearning/resources/templatetags/__init__.py index e69de29..e69de29 100644 --- a/pyblackbird_cc/resources/templatetags/__init__.py +++ b/alphabetlearning/resources/templatetags/__init__.py diff --git a/pyblackbird_cc/resources/templatetags/markdown_extras.py b/alphabetlearning/resources/templatetags/markdown_extras.py index 400948a..400948a 100644 --- a/pyblackbird_cc/resources/templatetags/markdown_extras.py +++ b/alphabetlearning/resources/templatetags/markdown_extras.py diff --git a/pyblackbird_cc/resources/tests/__init__.py b/alphabetlearning/resources/tests/__init__.py index e69de29..e69de29 100644 --- a/pyblackbird_cc/resources/tests/__init__.py +++ b/alphabetlearning/resources/tests/__init__.py diff --git a/pyblackbird_cc/resources/tests/test_file_processing.py b/alphabetlearning/resources/tests/test_file_processing.py index 7b95a9d..e09a135 100644 --- a/pyblackbird_cc/resources/tests/test_file_processing.py +++ b/alphabetlearning/resources/tests/test_file_processing.py @@ -28,7 +28,7 @@ class PDFFileUploadTestCase(TestCase): def setUp(self): self.url = reverse("resources:create_resource") self.test_file_path = Path( - settings.BASE_DIR / "pyblackbird_cc" / "resources/tests/testdata/test_small_file.pdf" + settings.BASE_DIR / "alphabetlearning" / "resources/tests/testdata/test_small_file.pdf" ) # Create a test user diff --git a/pyblackbird_cc/resources/tests/test_forms.py b/alphabetlearning/resources/tests/test_forms.py index 318071d..aebc110 100644 --- a/pyblackbird_cc/resources/tests/test_forms.py +++ b/alphabetlearning/resources/tests/test_forms.py @@ -4,10 +4,10 @@ from django.db import IntegrityError from django.test import TestCase from django.utils.datastructures import MultiValueDict -from pyblackbird_cc.resources.factories import ResourceModelFactory -from pyblackbird_cc.resources.forms import ResourceCreateForm -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceType +from alphabetlearning.resources.factories import ResourceModelFactory +from alphabetlearning.resources.forms import ResourceCreateForm +from alphabetlearning.resources.models import ResourceCategory +from alphabetlearning.resources.models import ResourceType class ResourceCreateFormTest(TestCase): diff --git a/pyblackbird_cc/resources/tests/test_models.py b/alphabetlearning/resources/tests/test_models.py index bfc5a38..0fd589a 100644 --- a/pyblackbird_cc/resources/tests/test_models.py +++ b/alphabetlearning/resources/tests/test_models.py @@ -5,15 +5,15 @@ import pytest from django.db import IntegrityError from django.test import TestCase -from pyblackbird_cc.resources.factories import PDFPageSnapshotModelFactory -from pyblackbird_cc.resources.factories import ResourceModelFactory -from pyblackbird_cc.resources.models import PDFPageSnapshot -from pyblackbird_cc.resources.models import PDFResource -from pyblackbird_cc.resources.models import Resource -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceType -from pyblackbird_cc.resources.views import ResourceInfo -from pyblackbird_cc.resources.views import _extract_metadata_from_resource +from alphabetlearning.resources.factories import PDFPageSnapshotModelFactory +from alphabetlearning.resources.factories import ResourceModelFactory +from alphabetlearning.resources.models import PDFPageSnapshot +from alphabetlearning.resources.models import PDFResource +from alphabetlearning.resources.models import Resource +from alphabetlearning.resources.models import ResourceCategory +from alphabetlearning.resources.models import ResourceType +from alphabetlearning.resources.views import ResourceInfo +from alphabetlearning.resources.views import _extract_metadata_from_resource @pytest.mark.django_db() @@ -118,4 +118,3 @@ def test_get_urls_of_resource_snapshot_images(resource): assert len(resource.thumbnail_filenames) == 3 # crude but it does the job; concatenating a list of URLS into one long sting... assert "https://ams3.digitaloceanspaces.com" in "".join(resource.thumbnail_urls()) - diff --git a/pyblackbird_cc/resources/tests/test_views.py b/alphabetlearning/resources/tests/test_views.py index 87b9fc0..b57e79d 100644 --- a/pyblackbird_cc/resources/tests/test_views.py +++ b/alphabetlearning/resources/tests/test_views.py @@ -10,11 +10,11 @@ from django.test import RequestFactory from django.test import TestCase from django.urls import reverse -from pyblackbird_cc.resources import services -from pyblackbird_cc.resources.forms import ResourceCreateForm -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceType -from pyblackbird_cc.resources.views import create_resource +from alphabetlearning.resources import services +from alphabetlearning.resources.forms import ResourceCreateForm +from alphabetlearning.resources.models import ResourceCategory +from alphabetlearning.resources.models import ResourceType +from alphabetlearning.resources.views import create_resource pytestmark = pytest.mark.django_db @@ -48,10 +48,10 @@ class PDFFileUploadTestCase(TestCase): def setUp(self): self.url = reverse("resources:create_resource") self.two_page_pdf = Path( - settings.BASE_DIR / "pyblackbird_cc" / "resources/tests/testdata/two_page.pdf" + settings.BASE_DIR / "alphabetlearning" / "resources/tests/testdata/two_page.pdf" ) self.seven_page_pdf = Path( - settings.BASE_DIR / "pyblackbird_cc" / "resources/tests/testdata/seven_page.pdf" + settings.BASE_DIR / "alphabetlearning" / "resources/tests/testdata/seven_page.pdf" ) # Create a test user diff --git a/pyblackbird_cc/resources/tests/testdata/seven_page.pdf b/alphabetlearning/resources/tests/testdata/seven_page.pdf Binary files differindex 991a26d..991a26d 100644 --- a/pyblackbird_cc/resources/tests/testdata/seven_page.pdf +++ b/alphabetlearning/resources/tests/testdata/seven_page.pdf diff --git a/pyblackbird_cc/resources/tests/testdata/test_small_file.pdf b/alphabetlearning/resources/tests/testdata/test_small_file.pdf Binary files differindex 9a990c8..9a990c8 100644 --- a/pyblackbird_cc/resources/tests/testdata/test_small_file.pdf +++ b/alphabetlearning/resources/tests/testdata/test_small_file.pdf diff --git a/pyblackbird_cc/resources/tests/testdata/two_page.pdf b/alphabetlearning/resources/tests/testdata/two_page.pdf Binary files differindex 9c74944..9c74944 100644 --- a/pyblackbird_cc/resources/tests/testdata/two_page.pdf +++ b/alphabetlearning/resources/tests/testdata/two_page.pdf diff --git a/pyblackbird_cc/resources/urls.py b/alphabetlearning/resources/urls.py index 87cd3b0..87cd3b0 100644 --- a/pyblackbird_cc/resources/urls.py +++ b/alphabetlearning/resources/urls.py diff --git a/pyblackbird_cc/resources/utils.py b/alphabetlearning/resources/utils.py index d17aa69..d17aa69 100644 --- a/pyblackbird_cc/resources/utils.py +++ b/alphabetlearning/resources/utils.py diff --git a/pyblackbird_cc/resources/views.py b/alphabetlearning/resources/views.py index 3bf3d22..3bf3d22 100644 --- a/pyblackbird_cc/resources/views.py +++ b/alphabetlearning/resources/views.py |