Skip to content

Commit 780adca

Browse files
authored
Add pytest-timeout and refactor requirements.txt files (#3509)
PBENCH-1236
1 parent ca36407 commit 780adca

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

client/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
pytest>=6.2.5
21
requests

pytest.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[pytest]
22
addopts = -s
3-
log_cli=False
4-
log_level=INFO
3+
log_cli = False
4+
log_level = INFO
55
filterwarnings=
66
# Issue #557 in `pytest-cov` (currently v4.x) has not moved for a while now,
77
# but once a resolution has been adopted we can drop this "ignore".
88
# Ref: https://github.com/pytest-dev/pytest-cov/issues/557
99
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
10+
timeout = 300

server/test-requirements.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
coverage
2-
filelock
3-
gitpython
4-
mock>=3.0.5
5-
pytest>=6.2.5
6-
pytest-cov>=2.7.1
7-
pytest-freezegun
8-
pytest-helpers-namespace==2019.1.8
9-
pytest-mock
101
pytest-dependency # functional tests
11-
pytest-xdist
2+
pytest-freezegun
123
requests_mock
13-
responses

agent/test-requirements.txt renamed to test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ pytest>=6.2.5
66
pytest-cov>=2.7.1
77
pytest-helpers-namespace==2019.1.8
88
pytest-mock
9+
pytest-timeout
910
pytest-xdist
1011
responses

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ setenv =
2828
SKIP_WRITE_GIT_CHANGELOG = 1
2929
deps =
3030
-r{toxinidir}/agent/requirements.txt
31-
-r{toxinidir}/agent/test-requirements.txt
3231
-r{toxinidir}/client/requirements.txt
3332
-r{toxinidir}/server/requirements.txt
33+
-r{toxinidir}/test-requirements.txt
3434
-r{toxinidir}/server/test-requirements.txt
3535
commands =
3636
bash -c "{toxinidir}/exec-tests {envdir} {posargs}"
@@ -43,7 +43,7 @@ basepython = python3.6
4343
deps =
4444
-c{toxinidir}/agent/test-constraints-3.6.txt
4545
-r{toxinidir}/agent/requirements.txt
46-
-r{toxinidir}/agent/test-requirements.txt
46+
-r{toxinidir}/test-requirements.txt
4747

4848
[testenv:alembic-migration]
4949
description = Verify alembic migrations cover latest database schema

0 commit comments

Comments
 (0)