Ich habe ein kleines Projekt mit 1 Test, der eine lange Zeit braucht, um zu sammeln. Ich habe die Sammlungen und Sammlungsberichte protokolliert. Zwischen 22:51:59 und 22:52:04 bin ich mir nicht sicher, was passiert, aber da kommt die (Pause?) Pause vor.pytest braucht eine lange Zeit, um Tests zu sammeln
[pytest]
testpaths = myproject/tests
python_files = *.py
addopts = -s
norecursedirs = docs *.egg-info .git appdir .tox __pycache__ .cache
[email protected]:/var/www/myproject# pytest myproject/tests/redis/
================================= test session starts =================================
platform linux -- Python 3.5.2, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
rootdir: /var/www/myproject, inifile: pytest.ini
22:51:59: collection started
22:51:59: collecting file: /var/www/myproject/myproject/tests/redis/__init__.py
22:51:59: collecting file: /var/www/myproject/myproject/tests/redis/pubsub.py
collecting 0 items22:51:59: collection report: <CollectReport '' lenresult=2 outcome='passed'>
22:51:59: collection started
collecting 0 items22:52:04: collection report: <CollectReport 'myproject/tests/redis/__init__.py' lenresult=0 outcome='passed'>
22:52:04: collection started
22:52:04: collection started
collecting 0 items22:52:04: collection report: <CollectReport 'myproject/tests/redis/pubsub.py::RedisTest' lenresult=0 outcome='passed'>
22:52:04: collection started
22:52:04: collected item: <TestCaseFunction 'test_pass'>
collecting 1 items22:52:04: collection report: <CollectReport 'myproject/tests/redis/pubsub.py::RegisterTests' lenresult=1 outcome='passed'>
collecting 1 items22:52:04: collection report: <CollectReport 'myproject/tests/redis/pubsub.py' lenresult=2 outcome='passed'>
collected 1 items
myproject/tests/redis/pubsub.py .
============================== 1 passed in 5.64 seconds ===============================