Use pytest-socket to ensure no tests are performing io (#1133)

This commit is contained in:
Steven B.
2024-09-27 17:20:25 +01:00
committed by GitHub
parent 936e45cad7
commit b4aba36b73
4 changed files with 59 additions and 8 deletions

14
uv.lock generated
View File

@@ -1277,6 +1277,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f2/3b/b26f90f74e2986a82df6e7ac7e319b8ea7ccece1caec9f8ab6104dc70603/pytest_mock-3.14.0-py3-none-any.whl", hash = "sha256:0b72c38033392a5f4621342fe11e9219ac11ec9d375f8e2a0c164539e0d70f6f", size = 9863 },
]
[[package]]
name = "pytest-socket"
version = "0.7.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "pytest" },
]
sdist = { url = "https://files.pythonhosted.org/packages/05/ff/90c7e1e746baf3d62ce864c479fd53410b534818b9437413903596f81580/pytest_socket-0.7.0.tar.gz", hash = "sha256:71ab048cbbcb085c15a4423b73b619a8b35d6a307f46f78ea46be51b1b7e11b3", size = 12389 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/19/58/5d14cb5cb59409e491ebe816c47bf81423cd03098ea92281336320ae5681/pytest_socket-0.7.0-py3-none-any.whl", hash = "sha256:7e0f4642177d55d317bbd58fc68c6bd9048d6eadb2d46a89307fa9221336ce45", size = 6754 },
]
[[package]]
name = "pytest-sugar"
version = "1.0.0"
@@ -1369,6 +1381,7 @@ dev = [
{ name = "pytest-cov" },
{ name = "pytest-freezer" },
{ name = "pytest-mock" },
{ name = "pytest-socket" },
{ name = "pytest-sugar" },
{ name = "pytest-timeout" },
{ name = "pytest-xdist" },
@@ -1407,6 +1420,7 @@ dev = [
{ name = "pytest-cov" },
{ name = "pytest-freezer", specifier = "~=0.4" },
{ name = "pytest-mock" },
{ name = "pytest-socket", specifier = ">=0.7.0" },
{ name = "pytest-sugar" },
{ name = "pytest-timeout", specifier = "~=2.0" },
{ name = "pytest-xdist", specifier = ">=3.6.1" },