1
0
mirror of https://github.com/django/django.git synced 2025-03-06 07:22:32 +00:00
2013-12-17 10:17:46 +01:00

11 lines
323 B
Python

from django.core.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)