Skip to content

Commit c3c3b08

Browse files
committed
Add pytest-timeout to contain long tests
1 parent b8cc463 commit c3c3b08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ python_paths= .
44
xfail_strict=true
55
log_format = %(levelname)8s %(asctime)s %(filename)20s %(message)s
66
log_date_format = %m-%d %H:%M:%S
7+
timeout = 300
78

89
[pytest-watch]
910
runner= pytest --failed-first --maxfail=1

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"pytest>=5.1.3,<6",
3636
"pytest-asyncio>=0.10.0,<0.11",
3737
"pytest-cov==2.5.1",
38+
"pytest-timeout>=1.4.2,<2",
3839
"pytest-watch>=4.1.0,<5",
3940
"pytest-xdist==1.31.0",
4041
],

0 commit comments

Comments
 (0)