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