test_celery.py 252 B

123456789
  1. from django.conf import settings
  2. def test_import_paths():
  3. for path in settings.CELERY_IMPORTS:
  4. try:
  5. __import__(path)
  6. except ImportError:
  7. raise AssertionError(f"Unable to import {path} from CELERY_IMPORTS")