From e7eb035b3376d44793f92c0229eefca79d06ee79 Mon Sep 17 00:00:00 2001 From: John Kurkowski Date: Sat, 19 Mar 2022 13:03:41 -0700 Subject: [PATCH] Block network requests during tests For the test suite to explicitly document the behavior of this project, when the project does reach out to servers. --- pytest.ini | 4 +++- tox.ini | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index df3eb518..e30abe58 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,4 @@ [pytest] -addopts = --doctest-modules +addopts = + --disable-socket + --doctest-modules diff --git a/tox.ini b/tox.ini index b3c362af..1bab2e55 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ deps = pytest-gitignore pytest-mock pytest-pylint + pytest-socket responses commands = pytest --pylint {posargs}