On 1/3/21 7:51 PM, [email protected] 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('[email protected]') 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 <[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

Reply via email to