2013-12-16 18:52:05 +08:00
|
|
|
from django.core.apps import app_cache
|
2013-12-15 01:51:58 +08:00
|
|
|
from django.test import TestCase
|
|
|
|
|
|
|
|
|
|
|
|
class NoModelTests(TestCase):
|
|
|
|
|
|
|
|
def test_no_models(self):
|
|
|
|
"""Test that it's possible to load an app with no models.py file."""
|
|
|
|
app_config = app_cache.get_app_config('no_models')
|
|
|
|
self.assertIsNone(app_config.models_module)
|