Hi folks, I'm trying to build a test suite for a django plugin for a field. To test the field I need to have a test model, but since my django app does not provide models, and I have the model in the /tests/models.py it's not detecting the model when the test db migrations are applied. I saw some suggestions on stack overflow to add the test app to the INSTALLED_APPS in the test app, however that causes an django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. error, which I imagine is caused by the tests app not being a full blown app. What's the proper solution for Django 2.0+ ? I'd prefer not to use the fake models solution as I plan to open source the module and want the field tested against a real db on Django 2.0 and 2.1.
Source is here:
https://gitlab.routh.io/open-source/django-bleachfields
Test failures and attempted configurations can be seen in the CI pipeline and commit history.
Hoping someone can lend their insights.