Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pytest-timeout and refactor requirements.txt files #3509

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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