Hi, I want to disable atomic() in tests (Django 1.8 and newer). I would like to "noop" it and implement alternate BEGIN-ROLLBACK sequence for every test. Anyone did this?
It comes from bad design of Django tests, where database is created, cleaned, dropped, fixtrue-loaded in every test, which is terrible in terms of performance and flexibility. Databases should be created/cleaned/prepared before running test suite, and running tests shouldn't alter database` state. That's why every test should end with rollback for all transactions and all databases. Kind Regards, Marcin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/91768f6f-c1aa-4d95-8a63-2f84b239b0a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.