Skip to content

Commit 882f4a2

Browse files
Merge pull request #204 from pact-foundation/chore/use_pytest
chore use pytest
2 parents 6aee3e2 + 261f24b commit 882f4a2

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
flake8
2626
pydocstyle pact
27-
- name: Test with nosetests
27+
- name: Test with pytest
2828
run: |
2929
tox -e test
3030
- name: Test examples

requirements_dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Click>=2.0.0,<=6.7
2+
coverage==5.4
23
Flask==1.0
34
configparser==3.5.0
4-
codecov==2.0.5
5-
coverage==4.3.4
65
flake8==3.8.3
76
mock==3.0.5
8-
nose==1.3.7
97
psutil==5.7.0
108
pycodestyle==2.6.0
119
pydocstyle==4.0.1
1210
tox==3.14.0
11+
pytest==5.4.1
12+
pytest-cov==2.11.1
1313
tox-travis==0.8
1414
wheel==0.24.0

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ xunit-file=nosetests.xml
1717

1818
[pydocstyle]
1919
match-dir=[^(test|\.)].*
20+
21+
22+
[tool:pytest]
23+
norecursedirs=examples

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# conftest

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ envlist=py{36,37,38,39}-{test,install}
44
deps=
55
test: -rrequirements_dev.txt
66
commands=
7-
test: nosetests
7+
test: pytest --cov pact tests
88
install: python -c "import pact"

0 commit comments

Comments
 (0)