From 36b7b7dde115de3b3bf3d7f3eb3cb1118c3e7341 Mon Sep 17 00:00:00 2001 From: Bojan Mihelac Date: Mon, 29 Jul 2024 10:33:11 +0200 Subject: [PATCH] Do not skip tests when testfixtures is missing (#639) --- TESTING.rst | 4 ++-- easy_thumbnails/tests/test_files.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/TESTING.rst b/TESTING.rst index cd7fe99a..6ff7b7b0 100644 --- a/TESTING.rst +++ b/TESTING.rst @@ -14,5 +14,5 @@ pytest ------ Assuming you're just wanting to test the current development version against -your virtualenv setup, you can alternatively just ``pip install pytest-django`` -and run ``pytest``. \ No newline at end of file +your virtualenv setup, you can alternatively just ``pip install pytest-django testfixtures`` +and run ``pytest``. diff --git a/easy_thumbnails/tests/test_files.py b/easy_thumbnails/tests/test_files.py index 9b8f0381..ee9c901c 100644 --- a/easy_thumbnails/tests/test_files.py +++ b/easy_thumbnails/tests/test_files.py @@ -7,10 +7,7 @@ from easy_thumbnails.options import ThumbnailOptions from easy_thumbnails.tests import utils as test from PIL import Image -try: - from testfixtures import LogCapture -except ImportError: - LogCapture = None +from testfixtures import LogCapture import unittest