File tree Expand file tree Collapse file tree 4 files changed +16
-21
lines changed
Expand file tree Collapse file tree 4 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ test: test_unit
55
66test_unit :
77 mkdir -p build
8- nosetests --with-coverage tests/unit
8+ coverage run -m pytest tests/unit
9+ coverage xml
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ pep8==1.5.7
2222# nose makes testing easier
2323# License: GNU Library or Lesser General Public License (LGPL)
2424# Upstream url: http://readthedocs.org/docs/nose
25- nose == 1.3.7
25+ # nose==1.3.7
2626
27- # Mocking and Patching Library for Testing
28- # License: BSD
29- # Upstream url: http ://www.voidspace.org.uk/python/mock
30- mock == 1.0.1
27+ # Testing library
28+ # License: MIT
29+ # Upstream url: https ://github.com/pytest-dev/pytest
30+ pytest == 6.2.5
Original file line number Diff line number Diff line change 11# Project specific configuration used by the following tools:
2- # - nosetests
2+ # - pytest
33# - flake8
4- #
5- # nosetests only support setup.cfg. flake8 supports both setup.cfg and tox.ini. In
6- # In order to not have too many files around, we'll use setup.cfg for now.
74
8- [nosetests]
9- # Turn this back on if the logs to too spammy.
10- # nocapture=1
11- with-xunit = 1
12- xunit-file = build/nosetests.xml
13- cover-package = kmsauth
14- cover-xml = 1
15- cover-xml-file = build/coverage.xml
16- cover-min-percentage = 70
5+
6+ [coverage:report]
7+ fail_under = 40
8+
9+ [coverage:xml]
10+ output = build/coverage.xml
1711
1812[flake8]
1913# The jenkins violations plugin can read the pylint format.
Original file line number Diff line number Diff line change 33import json
44
55import unittest
6- from mock import patch
7- from mock import MagicMock
6+ from unittest . mock import patch
7+ from unittest . mock import MagicMock
88
99import kmsauth
1010from kmsauth .utils import lru
You can’t perform that action at this time.
0 commit comments