mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
2fef9e5375
Reverted 4a56a93cc4
.
11 lines
318 B
Python
11 lines
318 B
Python
from django.apps import app_cache
|
|
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)
|