blob: de2d8540067da7ec96eb0796b97c7f982d7a71b0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from django.apps import apps
from django.test import SimpleTestCase
class NoModelTests(SimpleTestCase):
def test_no_models(self):
"""Test that it's possible to load an app with no models.py file."""
app_config = apps.get_app_config('no_models')
self.assertIsNone(app_config.models_module)
|