You can mock a mysql db using testing.mysqld (pip install testing.mysqld) Due to some noisy error logs that crop up, I like this setup when testing: import ...
確定! 回上一頁