Pytest takes longer time

When running pytest for sending request to an endpoint it takes more than 3 minutes to complete one test.

Any idea of what is causing this?

Can you show us your code?

This may be of help. I find testing fast on localhost but I have set up my mysql db on my synology NAS and it’s not fast. The time it takes to make a copy of the DB is probably the majority of the time. So normal local testing is about 1sec but on NAS hosted it’s 12 or so. Big difference.