From aeddecbfedbb72cce3a13c98f6d8f09fb04dfea2 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Thu, 30 Jan 2020 17:21:34 +0100 Subject: [PATCH] Build: Added timeout to tests. --- requirements.txt | 1 + setup.cfg | 3 ++- setup.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index dbe3726..9c677e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,4 @@ pytest-cache>=1.0 pytest-cov>=2.5.1 pytest-pep8>=1.0.6 pytest>=3.2.1 +pytest-timeout>=1.3.4 diff --git a/setup.cfg b/setup.cfg index 72e69bc..2579a0a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,5 @@ [aliases] test=pytest - +[tool:pytest] +timeout = 5 diff --git a/setup.py b/setup.py index c8fe04e..72a2d8f 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ tests_require = [ 'pytest-cache>=1.0', 'pytest-cov>=2.5.1', 'pytest-pep8>=1.0.6', + 'pytest-timeout>=1.3.4', 'pytest>=3.2.1', 'uvloop>=0.8.1', ] -- GitLab