summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-27 08:41:03 +0200
committerGitHub <noreply@github.com>2022-10-27 08:41:03 +0200
commitd559cb02da30f74debbb1fc3a46de0df134d2d80 (patch)
treee4f3dab1c7a1f28e3209dfc10e09e6c58cd1da33 /tests/admin_widgets/tests.py
parenteb6cc01d0f62c73441a3610193ba210176d0935f (diff)
Refs #19215 -- Fixed admin_widgets tests if Pillow isn't installed.
Follow up to c0fc1b5302f5d9d82e2255fb5758321fbac34949.
Diffstat (limited to 'tests/admin_widgets/tests.py')
-rw-r--r--tests/admin_widgets/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index bf26c1edc1..70b1233ef4 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -3,6 +3,7 @@ import os
import re
from datetime import datetime, timedelta
from importlib import import_module
+from unittest import skipUnless
try:
import zoneinfo
@@ -38,6 +39,7 @@ from .models import (
Company,
Event,
Honeycomb,
+ Image,
Individual,
Inventory,
Member,
@@ -1774,6 +1776,7 @@ class RelatedFieldWidgetSeleniumTests(AdminWidgetSeleniumTestCase):
self.assertEqual(profiles[0].user.username, username_value)
+@skipUnless(Image, "Pillow not installed")
class ImageFieldWidgetsSeleniumTests(AdminWidgetSeleniumTestCase):
def test_clearablefileinput_widget(self):
from selenium.webdriver.common.by import By