PonyORM how to separate database for tests and working?

Maybe someone works with PonyORM and knows the trick how to separate base?
By default, all entities are inherited from the Database.Entity. in the tests there would be no one to replace.
Only if a module with entities fuss if test_mode: db = TestDb()...

In of. documentation suggest to use bind, but then it turns out the garden of IFOV :(

But there should be a simple solution :(
July 12th 19 at 16:35
1 answer
July 12th 19 at 16:37
bind and there is a simple solution, don't IPY fence. tie the base in different places for tests in the tests for production in the combat code.

Find more questions by tags Python