Skip to content

Saleor Core: the high performance, composable, headless commerce API.

fix(tests): slow tests caused by pytest-socket (#19294)

Mikaild92d85f47642
diff --git a/pyproject.toml b/pyproject.toml
index 99010405af..bd52a24876 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -109,7 +109,7 @@ dev = [
"pytest-memray>=1.5.0,<2",
"pytest-mock>=3.6.1,<4",
"pytest-recording>=0.13.0,<0.14",
- "pytest-socket>=0.7.0,<0.8",
+ "pytest-socket>=0.8.0,<1",
"pytest-xdist>=3.0.2,<4",
"pywatchman>=2.0.0,<3",
"ruff>=0.12.2,<0.13",
@@ -152,6 +152,7 @@ exclude-newer = "3 weeks"
django = "2026-06-03T13:03:35Z" # https://pypi.org/pypi/django/5.2.15/json
pyjwt = "2026-05-21T19:54:36Z" # https://github.com/jpadilla/pyjwt/releases/tag/2.13.0
idna = "2026-05-12T22:45:57Z" # https://github.com/advisories/GHSA-65pc-fj4g-8rjx/
+pytest-socket = "2026-05-21T16:50:22Z" # Fixes slow fixtures caused by lack of cache https://github.com/miketheman/pytest-socket/pull/369
[tool.poe.tasks]
start.help = "Start development server with hot reload"
diff --git a/uv.lock b/uv.lock
index 5ecd52e074..4b52d07be1 100644
--- a/uv.lock
+++ b/uv.lock
@@ -13,9 +13,10 @@ exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for
exclude-newer-span = "P3W"
[options.exclude-newer-package]
-pyjwt = "2026-05-21T19:54:36Z"
-django = "2026-06-03T13:03:35Z"
idna = "2026-05-12T22:45:57Z"
+pytest-socket = "2026-05-21T16:50:22Z"
+django = "2026-06-03T13:03:35Z"
+pyjwt = "2026-05-21T19:54:36Z"
[[package]]
name = "amqp"
@@ -2262,14 +2263,14 @@ wheels = [
[[package]]
name = "pytest-socket"
-version = "0.7.0"
+version = "0.8.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pytest", marker = "platform_python_implementation != 'PyPy'" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/05/ff/90c7e1e746baf3d62ce864c479fd53410b534818b9437413903596f81580/pytest_socket-0.7.0.tar.gz", hash = "sha256:71ab048cbbcb085c15a4423b73b619a8b35d6a307f46f78ea46be51b1b7e11b3", size = 12389, upload-time = "2024-01-28T20:17:23.177Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/59/3c/f9b58e57830e58980dbe8867d0e348f45701d3f3ea065672d448f4366da5/pytest_socket-0.8.0.tar.gz", hash = "sha256:af9bb5f487da72be63573a6194cfac033b6c7a1c1561e150521105970f9e99f2", size = 13912, upload-time = "2026-05-21T16:50:22.552Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/19/58/5d14cb5cb59409e491ebe816c47bf81423cd03098ea92281336320ae5681/pytest_socket-0.7.0-py3-none-any.whl", hash = "sha256:7e0f4642177d55d317bbd58fc68c6bd9048d6eadb2d46a89307fa9221336ce45", size = 6754, upload-time = "2024-01-28T20:17:22.105Z" },
+ { url = "https://files.pythonhosted.org/packages/3f/e8/4a8568580bae3dcd678599ed8e86a82d505a44df71c1ced4246c1aa14b4b/pytest_socket-0.8.0-py3-none-any.whl", hash = "sha256:81821ba59f07d7600fe2b551d8714f40b068bd46e8b6704c48664e9d60cdacb8", size = 8414, upload-time = "2026-05-21T16:50:21.022Z" },
]
[[package]]
@@ -2737,7 +2738,7 @@ dev = [
{ name = "pytest-memray", specifier = ">=1.5.0,<2" },
{ name = "pytest-mock", specifier = ">=3.6.1,<4" },
{ name = "pytest-recording", specifier = ">=0.13.0,<0.14" },
- { name = "pytest-socket", specifier = ">=0.7.0,<0.8" },
+ { name = "pytest-socket", specifier = ">=0.8.0,<1" },
{ name = "pytest-xdist", specifier = ">=3.0.2,<4" },
{ name = "pywatchman", specifier = ">=2.0.0,<3" },
{ name = "ruff", specifier = ">=0.12.2,<0.13" },