mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Refs #19215 -- Fixed admin_widgets tests if Pillow isn't installed.
Follow up to c0fc1b5302
.
This commit is contained in:
parent
eb6cc01d0f
commit
d559cb02da
2 changed files with 14 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue