Django Testing in microservices with more than 1 db running

I would like to ask about a certain topic that is tough one. Im working in a project that has microservices architecture with more than 1 databases running every time. in django, how can I perform unit tests to it? im like everything is in a different database and totally seperate and the whole idea of unit tests seperates everything more.

I tried to use mocking, but the problem is that I need certain information from the other database to run some tests in another one. the problem is that I dont know how to run 2 databases (temporal for the unit test purposes) concurrently.

Вернуться на верх