From c878ec6eeeccb9056dda578d5ae497468d04c211 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Thu, 2 Sep 2021 05:00:15 -0700 Subject: [PATCH] Install nose no-network and timer plugins, use no-network in test & coverage --- requirements-dev.txt | 2 ++ script/coverage | 2 +- script/test | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 522f112..39faa18 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,8 @@ coverage mock nose +nose-no-network +nose-timer pycodestyle==2.6.0 pyflakes==2.2.0 readme_renderer[md]==26.0 diff --git a/script/coverage b/script/coverage index db8e219..2ca8d4b 100755 --- a/script/coverage +++ b/script/coverage @@ -36,7 +36,7 @@ grep -r -I --line-number "# pragma: +no.*cover" octodns && { exit 1 } -coverage run --branch --source=octodns --omit=octodns/cmds/* "$(command -v nosetests)" --with-xunit "$@" +coverage run --branch --source=octodns --omit=octodns/cmds/* "$(command -v nosetests)" --with-no-network --with-xunit "$@" coverage html coverage xml coverage report --show-missing diff --git a/script/test b/script/test index 98bae20..b074595 100755 --- a/script/test +++ b/script/test @@ -30,4 +30,4 @@ export ARM_CLIENT_SECRET= export ARM_TENANT_ID= export ARM_SUBSCRIPTION_ID= -nosetests "$@" +nosetests --with-no-network "$@"