test: Use pytest instead of nose

This commit is contained in:
Brian C. Lane 2020-01-13 16:37:17 -08:00
parent bae3cb06bc
commit b86926e275
2 changed files with 4 additions and 4 deletions

View File

@ -14,11 +14,12 @@ RUN dnf -y install \
python3-magic \
python3-mako \
python3-mock \
python3-nose \
python3-pocketlint \
python3-pycdlib \
python3-pylint \
python3-pyparted \
python3-pytest \
python3-pytest-cov \
python3-toml \
python3-semantic_version \
python3-sphinx \

View File

@ -51,9 +51,8 @@ check:
test:
@echo "*** Running tests ***"
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \
--cover-package=pylorax --cover-package=lifted --cover-package=composer \
--cover-inclusive \
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m pytest -v --cov-branch \
--cov=pylorax --cov=lifted --cov=composer \
./tests/pylorax/ ./tests/composer/ ./tests/lifted/
coverage3 report -m