On 1/3/21 7:51 PM, baguazhangba@gmail.com wrote:
Thanks Mark for the answer! Now I'm able to use MAILMAN_EXTRA_TESTING_CFG=/tmp/mailman/sqilite.db python3 -m nose2 -v mailman.model.test and can see the file timestamp changed after I run unittest.
but the sqlite database seems empty when I query tables like select * from mailinglist; I tried sys.exit() right after calling create_list('ant@example.com') and config.db.store.flush(), but still could not see any data in sqlite. anywhere I should look at?
Testing clears out everything it does. See <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/testing/helpers.py#L462>.
Would you really want testing to leave artifacts behind?
What is your actual goal?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan