django-db-constraints icon indicating copy to clipboard operation
django-db-constraints copied to clipboard

Running pytest w/ --no-migrations flag

Open ish-vasa opened this issue 6 years ago • 0 comments

Hey! This package has been really great but I discovered a hole in my testing suite regarding the generated constraints. I run pytest for my django project w/ a --no-migrations flag in order to speed up running my tests. The issue here is that the database constraints that this package generates do not get applied since they're applied using migrations.

This isn't a bug with the library, but I wanted to open this up to see if anyone has had similar issues or has any workarounds. Running migrations every time takes forever so I was thinking I might be able to load a sql dump before running my suite. Thanks for the help!

ish-vasa avatar Dec 27 '18 17:12 ish-vasa