Browse Source

Install nose no-network and timer plugins, use no-network in test & coverage

pull/769/head
Ross McFarland 4 years ago
parent
commit
c878ec6eee
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
3 changed files with 4 additions and 2 deletions
  1. +2
    -0
      requirements-dev.txt
  2. +1
    -1
      script/coverage
  3. +1
    -1
      script/test

+ 2
- 0
requirements-dev.txt View File

@ -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


+ 1
- 1
script/coverage View File

@ -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


+ 1
- 1
script/test View File

@ -30,4 +30,4 @@ export ARM_CLIENT_SECRET=
export ARM_TENANT_ID=
export ARM_SUBSCRIPTION_ID=
nosetests "$@"
nosetests --with-no-network "$@"

Loading…
Cancel
Save