6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-04-10 21:21:50 +00:00

Switch from nose to unittest for running tests

This harmonizes test running between CI and local development.
This commit is contained in:
Régis Behmo 2019-05-05 11:44:48 +02:00 committed by Régis Behmo
parent 9dd4c26706
commit 4ac7dff06a
3 changed files with 2 additions and 7 deletions

View File

@ -16,7 +16,7 @@ test-lint: ## Run code linting tests
pylint --errors-only tutor
test-unit: ## Run unit tests
nosetests --nocapture tests/
python3 -m unittest discover tests
format: ## Format code automatically
black ./tutor
@ -48,13 +48,10 @@ ci-info: ## Print info about environment
python3 --version
pip3 --version
ci-test: test-format test-lint ## Run unit tests but without nosetests, which is not available on Mac OS in travis-ci
python3 -m unittest discover tests
ci-bundle: ## Create bundle and run basic tests
pip3 install -U setuptools
pip3 install -r requirements/dev.txt
$(MAKE) ci-test
$(MAKE) test
$(MAKE) bundle
mkdir -p releases/
./dist/tutor --version

View File

@ -1,6 +1,5 @@
-r base.txt
black
nose
pip-tools
pylint
pyinstaller

View File

@ -24,7 +24,6 @@ lazy-object-proxy==1.3.1 # via astroid
macholib==1.11 # via pyinstaller
markupsafe==1.1.1
mccabe==0.6.1 # via pylint
nose==1.3.7
oauthlib==3.0.1
pefile==2018.8.8 # via pyinstaller
pip-tools==3.2.0