You will need some additional Python modules to run the unit tests and linting.
pip install mock pytest pylint
You will also need the source for the project, so clone the project first.
git clone https://github.com/awslabs/multi-model-server.git
cd multi-model-server
You can run the unit tests with the following:
python -m pytest mms/tests/unit_tests/
To get the coverage report of unit tests, you can run :
python -m pytest --cov-report term-missing --cov=mms/ mms/tests/unit_tests/
or:
python -m pytest --cov-report html:htmlcov --cov=mms/ mms/tests/unit_tests/
You can run the lint tests with the following:
pylint -rn --rcfile=./mms/tests/pylintrc mms/.