diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-19 19:52:02 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-19 19:52:02 +0100 |
commit | 51bbea4361d4fafe93997ed0f3dae05be8389c96 (patch) | |
tree | ea180b511a9fe76127dc7f60acd5cf74352c40de /pyblackbird_cc/resources/tests | |
parent | 8c0cbec4a801771c2eda26bba54d4cfcf95ca9d7 (diff) |
wip: getting the thumbnails of resources
Diffstat (limited to 'pyblackbird_cc/resources/tests')
-rw-r--r-- | pyblackbird_cc/resources/tests/test_models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/tests/test_models.py b/pyblackbird_cc/resources/tests/test_models.py index 7398c43..40c13e4 100644 --- a/pyblackbird_cc/resources/tests/test_models.py +++ b/pyblackbird_cc/resources/tests/test_models.py @@ -111,3 +111,9 @@ class TestPDFResourceModel(TestCase): def test_get_pdf_snapshot_filenames(self): self.assertEqual(self.pdf_resource.snapshot_file_names(), ["test_resource_1.jpg"]) + + +@pytest.mark.django_db() +def test_get_urls_of_resource_snapshot_images(resource): + assert len(resource.thumbnail_filenames) == 3 + |