Jan Dittberner
be0531ec30
This commit adds a refactoring for gnuviechadmin.celery to make the installed apps detection testable. The test is added in gnuviechadmin.tests.test_celery. Debug code in gnuviechadmin.urls is no excluded from coverage reporting.
11 lines
268 B
Python
11 lines
268 B
Python
from unittest import TestCase
|
|
|
|
from gnuviechadmin.celery import get_installed_apps
|
|
from django.conf import settings
|
|
|
|
|
|
class GetInstalledAppsTest(TestCase):
|
|
|
|
def test_get_installed_apps(self):
|
|
self.assertEqual(get_installed_apps(), settings.INSTALLED_APPS)
|