From 9f8ab8f7476f29466a1fb19e17a5347c6a378aac Mon Sep 17 00:00:00 2001 From: Luis Alvergue Date: Tue, 10 Dec 2024 15:29:25 +0000 Subject: [PATCH] feat: turn off socket connections for unit tests this is needed since we don't want to allow unit tests to go out to the internet --- tests/pytest/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/pytest/conftest.py diff --git a/tests/pytest/conftest.py b/tests/pytest/conftest.py new file mode 100644 index 0000000..b4e630a --- /dev/null +++ b/tests/pytest/conftest.py @@ -0,0 +1,5 @@ +from pytest_socket import disable_socket + + +def pytest_runtest_setup(): + disable_socket()