Skip to content

Commit e663b5e

Browse files
Add pytest-timeout plugin and 300s timeout to prevent indefinite hangs
Co-authored-by: MarcSkovMadsen <42288570+MarcSkovMadsen@users.noreply.github.com>
1 parent d19d56b commit e663b5e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

pixi.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ mypy = "*"
3030
pytest = ">=6"
3131
pytest-asyncio = "*"
3232
pytest-cov = "*"
33+
pytest-timeout = "*"
3334
types-PyYAML = "*"
3435

3536
[feature.test.tasks]

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ dev = [
7777
"pre-commit",
7878
"pytest-asyncio",
7979
"pytest-rerunfailures",
80+
"pytest-timeout",
8081
"pytest-xdist",
8182
"pytest",
8283
"types-PyYAML",
@@ -164,6 +165,7 @@ asyncio_default_fixture_loop_scope = "function"
164165
xfail_strict = true
165166
minversion = "7"
166167
log_cli_level = "INFO"
168+
timeout = 300
167169
filterwarnings = [
168170
"error",
169171
"ignore::DeprecationWarning",

0 commit comments

Comments
 (0)