Removed hardcoded test case deletion if the django module is not installed, switched to dynamic attr removal
This commit is contained in:
parent
1291324593
commit
9fc1032050
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user