Skip to content

Commit a0e92a4

Browse files
committed
[tests] Added short timeout to pytest, log_cli, explicit asyncio settings
1 parent 48d4cf3 commit a0e92a4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

pytest.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[pytest]
2-
addopts = -p no:warnings --create-db --reuse-db --nomigrations
2+
addopts = -p no:warnings --create-db --reuse-db --nomigrations --timeout=5
33
DJANGO_SETTINGS_MODULE = openwisp2.settings
44
python_files = pytest*.py
55
python_classes = *Test*
66
pythonpath = tests
7+
log_cli = true
8+
asyncio_mode = strict
9+
asyncio_debug = true

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pytest-cov~=7.0.0
2+
pytest-timeout~=2.3.0
23
openwisp-utils[qa,selenium,channels-test] @ https://github.com/openwisp/openwisp-utils/archive/refs/heads/1.3.tar.gz
34
django_redis~=6.0.0
45
mock-ssh-server~=0.9.1

0 commit comments

Comments
 (0)