Force tests to fail if migrations aren't run

Viewed 65

I'm blatantly oblivious sometimes, and it led me down a 30 minute blackhole trying to figure out why my constraints weren't being applied in my tests. Turns out I forgot to run makemigrations. Is there a way to configure pytest or django to fail without makemigrations?

I know if very clearly warns me

Your models have changes that are not yet reflected in a migration, and so won't be applied.

Just looking for something a little more obvious/in your face?

1 Answers
Related