mirror of
https://github.com/Hopiu/django.git
synced 2026-04-03 23:00:37 +00:00
This commit revertsf44c4a5d0fand39bbd165. django.test.simple will be updated in a separate commit as it requires invasive changes.
10 lines
318 B
Python
10 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)
|