I’ve been battling an issue with our django unit tests having random failures from either
- IntegrityErrors from models created by FactoryBoy even though all UnitTests use the Django’s TestCase base class that does the
atomic.transactions. Also, have configured for various FactoryBoy objects to use the class
Meta:attributes to use a
- Also, have a view tests that brute spams object creation using freezegun over a timepsan and that will randomly fail when it asserts records in the database.
All these tests pass locally when ran isolated and in bulk from the test runner. On CircleCI.
Open to just thoughts on things I should try. Should I make some configuration adjustments in CircleCI that may help?