huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
242 stars 80 forks source link

The Sync tests (and maybe others) modify the shared DB tenants DB. If the system uses this feature, it could destroy the local system. #6891

Open RafaPolit opened 5 months ago

RafaPolit commented 5 months ago

The Sync tests, and maybe others as well, are modifying the shared DB with the tenants configuration. If the system where the tests are run actually had a multi-tenant config, this would destroy the configuration.

Maybe we can take the same approach as other tests and use a temporary or even in-memory DB?