Skip to content

Commit 48490d7

Browse files
authored
test: Add test timeout to max of 60 seconds (#1427)
1 parent 8fe32bb commit 48490d7

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dev = [
5555
"pytest-cov",
5656
"pytest-asyncio",
5757
"pytest-httpx>=0.35.0",
58+
"pytest-timeout",
5859
"responses",
5960
"ruff",
6061
"semver",
@@ -72,7 +73,7 @@ dev = [
7273
"jwcrypto",
7374
"deepdiff",
7475
"tiled[minimal-server]>=0.2.4", # For system-test of dls.py
75-
"respx"
76+
"respx",
7677
]
7778

7879
[project.scripts]
@@ -103,6 +104,7 @@ filterwarnings = ["error", "ignore::DeprecationWarning"]
103104
# Doctest python code in docs, python code in src docstrings, test functions in tests
104105
testpaths = "docs src tests"
105106
asyncio_mode = "auto"
107+
timeout = 3
106108

107109
[tool.coverage.run]
108110
patch = ["subprocess"]
@@ -178,6 +180,7 @@ commands = [
178180
"term",
179181
"--cov-report",
180182
"xml:cov.xml",
183+
"--timeout=60",
181184
{ replace = "posargs", default = [
182185
], extend = true },
183186
],

tests/unit_tests/test_example_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_example_config_is_valid(file_name: str):
2121
loader.load()
2222

2323

24+
@pytest.mark.timeout(30)
2425
@pytest.mark.parametrize("file_name", os.listdir(example_helm))
2526
def test_example_helm_is_valid(file_name: str):
2627
path = example_helm / file_name

uv.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)