Skip to content

Commit 71b8a6a

Browse files
committed
Replace setup.py test with pytest
1 parent 4497d48 commit 71b8a6a

4 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/integration.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,3 @@ jobs:
116116
name: logs
117117
path: /tmp/*.log
118118
if-no-files-found: ignore
119-
120-
- name: Submit coverage report
121-
run: |
122-
codecov --token=cf379ef9-76c2-4aa9-9bf5-5c01303222e0

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ pylint:
1111

1212
.PHONY: test
1313
test:
14-
python -m coverage run --source tcms_api setup.py test
15-
16-
.PHONY: test-codecov
17-
test-codecov: test
18-
codecov
14+
pytest --ignore=tests/krb5/ tests/
1915

2016
.PHONY: build
2117
build:
@@ -44,11 +40,11 @@ run-services:
4440

4541
.PHONY: verify-integration
4642
verify-integration:
47-
PYTHONPATH=. python -m coverage run --source tcms_api ./tests/krb5/integration_test.py
43+
pytest -v ./tests/krb5/integration_test.py
4844

4945
.PHONY: verify-credentials-via-python
5046
verify-credentials-via-python:
51-
PYTHONPATH=. python -m coverage run --source tcms_api ./tests/krb5/python_credentials_test.py
47+
pytest -v ./tests/krb5/python_credentials_test.py
5248

5349
.PHONY: verify-curl-with-kerberos
5450
verify-curl-with-kerberos:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
matrix:
1010
- MAKE: flake8
1111
- MAKE: pylint
12-
- MAKE: test-codecov
12+
- MAKE: test
1313
- MAKE: build
1414

1515
install:

devel.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r requirements.txt
22

33
build
4-
codecov
54
flake8
65
pylint
6+
pytest
77
twine

0 commit comments

Comments
 (0)