Closed aqeelat closed 2 years ago
It's not so bad to set a timeout large enough for the migration time + test and use that same large timeout for all tests, it is in fact recommended usage. If you really disagree you can try using the timeout_func_only
setting: https://github.com/pytest-dev/pytest-timeout/blob/7d4c413a6344edd8340628354419a324e68c6cb7/pytest_timeout.py#L38-L42
So, my issue is: The database migration takes about 2.5 minutes. This means that I have to set my timeout to
migration time + timeout
. This timeout will apply to all tests. Is there a way to exclude the migrations from the timeout?