msiemens / tinydb

TinyDB is a lightweight document oriented database optimized for your happiness :)
https://tinydb.readthedocs.org
MIT License
6.76k stars 534 forks source link

Do not clear your testdb in the beginning #501

Closed HeySlava closed 1 year ago

HeySlava commented 1 year ago

This new fixture allows to get rid of line: db.drop_tables()` in case where it in the beginning of the tests. This pull request show a possible new fixture and its implementation in one test

Possible problems:

I reuse the old fuxture db in my new one, so all test will be passed