Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: add pytest-timeout (#2715)

Myles Scolnick034042e7fa04
diff --git a/pyproject.toml b/pyproject.toml
index 2aa20ad631..c3c5ef1496 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -165,6 +165,7 @@ extra-dependencies = [
# For server testing
"httpx~=0.27.0",
"pytest~=8.3.2",
+ "pytest-timeout~=2.3.1",
"pytest-codecov~=0.5.1",
"pytest-asyncio~=0.23.8",
]
@@ -191,6 +192,7 @@ extra-dependencies = [
"hypothesis~=6.102.1",
"httpx~=0.27.0",
"pytest~=8.3.2",
+ "pytest-timeout~=2.3.1",
"pytest-codecov~=0.5.1",
"pytest-asyncio~=0.23.8",
# For testing mo.ui.chart, table, ...
@@ -375,6 +377,7 @@ testpaths = [
"tests",
]
asyncio_mode = "auto"
+timeout = 30 # seconds, per test
[tool.coverage.run]
omit = ["marimo/_tutorials/*"]