On 1/3/21 4:44 PM, [email protected] wrote: > Hello All, > > Happy New Year 2021! > I've configured mailman using sqlite as backend database. but when I run > unittests, > e.g. python3 -m nose2 -v mailman.model.test > > seems the data is not write to production sqlite database, so which database > is used in unittest and how to check data in that db?
Tests run that way will use their own sqlite DB which is removed after testing. You can use any database you like by configuring it in a file containing a [database] section with appropriate class and url definitions and then doing something like > MAILMAN_EXTRA_TESTING_CFG=/path/to/db/config python3 -m nose2 -v > mailman.model.test -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3 Security Policy: https://wiki.list.org/x/QIA9
