Django has a --check
argument that let's you check if migrations need to be created for your project. This is relatively easy to add in CI, but that won't perform the check on developer computers.
I want to add this check as a unit test in my Django project, so that it is covered when developers run our test suite.
What is a good way to accomplish that?