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 /alphabetlearning/resources/tests | |
parent | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff) |
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to '')
-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 |
8 files changed, 21 insertions, 22 deletions
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 |