3 ms·
Not production DB, obviously :) Generate data before tests, collect list of created records during tests, remove collected items after all tests - if DB is not
by EugeneOZ 11y ago
Not production DB, obviously :)
Generate data before tests, collect list of created records during tests, remove collected items after all tests - if DB is not empty after it, you can see something unexpected has happened. If it's not possible to collect records (because of too opaque ORM), just flush DB.