Commit 9fc10320 authored by Antonio Cavedoni's avatar Antonio Cavedoni

Removed hardcoded test case deletion if the django module is not installed,...

Removed hardcoded test case deletion if the django module is not installed, switched to dynamic attr removal
parent 12913245
......@@ -30,6 +30,5 @@ try:
from django.conf import settings
except ImportError:
logger.warn("Django is not available => can't test django filters")
del DjangoFilterTests.test_django_filter
del DjangoFilterTests.test_django_date_type
del DjangoFilterTests.test_django_item_title
for method in dir(DjangoFilterTests):
if method.startswith('test_'): delattr(DjangoFilterTests,method)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment