On 1/3/21 7:51 PM, baguazhan...@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('a...@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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
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