Skip to content

Commit

Permalink
Add pytest-timeout and refactor requirements.txt files (distributed-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh authored Aug 2, 2023
1 parent ca36407 commit 780adca
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
1 change: 0 additions & 1 deletion client/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pytest>=6.2.5
requests
5 changes: 3 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[pytest]
addopts = -s
log_cli=False
log_level=INFO
log_cli = False
log_level = INFO
filterwarnings=
# Issue #557 in `pytest-cov` (currently v4.x) has not moved for a while now,
# but once a resolution has been adopted we can drop this "ignore".
# Ref: https://github.com/pytest-dev/pytest-cov/issues/557
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
timeout = 300
12 changes: 1 addition & 11 deletions server/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
coverage
filelock
gitpython
mock>=3.0.5
pytest>=6.2.5
pytest-cov>=2.7.1
pytest-freezegun
pytest-helpers-namespace==2019.1.8
pytest-mock
pytest-dependency # functional tests
pytest-xdist
pytest-freezegun
requests_mock
responses
1 change: 1 addition & 0 deletions agent/test-requirements.txt → test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ pytest>=6.2.5
pytest-cov>=2.7.1
pytest-helpers-namespace==2019.1.8
pytest-mock
pytest-timeout
pytest-xdist
responses
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ setenv =
SKIP_WRITE_GIT_CHANGELOG = 1
deps =
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/agent/test-requirements.txt
-r{toxinidir}/client/requirements.txt
-r{toxinidir}/server/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/server/test-requirements.txt
commands =
bash -c "{toxinidir}/exec-tests {envdir} {posargs}"
Expand All @@ -43,7 +43,7 @@ basepython = python3.6
deps =
-c{toxinidir}/agent/test-constraints-3.6.txt
-r{toxinidir}/agent/requirements.txt
-r{toxinidir}/agent/test-requirements.txt
-r{toxinidir}/test-requirements.txt

[testenv:alembic-migration]
description = Verify alembic migrations cover latest database schema
Expand Down

0 comments on commit 780adca

Please sign in to comment.