PayPal sandbox tests used requests.post/get() with no timeout parameter. When the CI runner at build.unturf.com cannot reach api-m.sandbox.paypal.com, these calls block until TCP timeout (minutes), stalling all xdist workers and causing the 1-hour CI timeout. - Add timeout=10 to all requests calls in PayPal sandbox tests - Add pytest-timeout with 60s default so no single test can hang the suite
9 lines
143 B
Text
9 lines
143 B
Text
# testing.
|
|
pytest
|
|
pytest-cov
|
|
pytest-timeout # Per-test timeout safety net
|
|
pytest-xdist # Parallel test execution
|
|
nose
|
|
mock
|
|
WebTest
|
|
fakeredis
|