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?