Skip to content

Commit c638eff

Browse files
author
sidey79
committed
fix: global pytest timeout added via pytest-timeout dep
1 parent 2e639f1 commit c638eff

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ This file provides guidance to agents when working with code in this repository.
1515
oder um eine längere Laufzeit zu analysieren:
1616
`python3 main.py --timeout 30`
1717

18+
## Test Timeout Configuration
19+
- Für pytest wurde ein globaler Timeout von 30 Sekunden in der `pyproject.toml` konfiguriert:
20+
```toml
21+
[tool.pytest.ini_options]
22+
timeout = 30
23+
```
24+
- Die erforderliche Abhängigkeit `pytest-timeout` wurde zur `requirements-dev.txt` hinzugefügt.
25+
1826
## Mandatory Documentation and Test Maintenance
1927

2028
Diese Richtlinie gilt für alle AI-Agenten, die Code oder Systemkonfigurationen in diesem Repository ändern. Jede Änderung **muss** eine vollständige Analyse der Auswirkungen auf die zugehörige Dokumentation und die Testsuite umfassen.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ include = ["signalduino", "sd_protocols"]
1919

2020
[tool.pytest.ini_options]
2121
testpaths = ["tests"]
22+
timeout = 30
2223

2324
[tool.pytest-asyncio]
2425
mode = "auto"

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pytest-mock
33
pytest-asyncio
44
pytest-cov
55
jsonschema
6+
pytest-timeout

0 commit comments

Comments
 (0)