2013-12-24 11:25:17 +00:00
|
|
|
from django.apps import apps
|
2015-04-17 21:38:20 +00:00
|
|
|
from django.test import SimpleTestCase
|
2013-12-14 17:51:58 +00:00
|
|
|
|
|
|
|
|
2015-04-17 21:38:20 +00:00
|
|
|
class NoModelTests(SimpleTestCase):
|
2013-12-14 17:51:58 +00:00
|
|
|
|
|
|
|
def test_no_models(self):
|
2016-10-27 07:53:39 +00:00
|
|
|
"""It's possible to load an app with no models.py file."""
|
2013-12-24 11:25:17 +00:00
|
|
|
app_config = apps.get_app_config('no_models')
|
2013-12-14 17:51:58 +00:00
|
|
|
self.assertIsNone(app_config.models_module)
|