You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should make sure that all new tests are relatively fast, with a few smoke tests that are allowed to take a bit longer. I suggest a default per-test timeout of 0.5s, with an override for the few tests that take longer than this.
This would involve:
Adding pytest-timeout as a dev dependency in pyproject.toml
Setting in timeout = 0.5 in [tool.pytest.ini_options] in pyproject.toml
Adding @pytest.mark.timeout(<a_longer_timeout>) for those tests that now start to fail
We should make sure that all new tests are relatively fast, with a few smoke tests that are allowed to take a bit longer. I suggest a default per-test timeout of 0.5s, with an override for the few tests that take longer than this.
This would involve:
pytest-timeout
as a dev dependency inpyproject.toml
timeout = 0.5
in[tool.pytest.ini_options]
inpyproject.toml
@pytest.mark.timeout(<a_longer_timeout>)
for those tests that now start to failAs per https://pypi.org/project/pytest-timeout/
In a later PR we will make the slow tests faster
The text was updated successfully, but these errors were encountered: