Matheus Felipe 08ba4e6458 | 2 years ago | |
---|---|---|
.. | ||
tests | 2 years ago | |
validate | 2 years ago | |
README.md | 2 years ago | |
github_pull_request.sh | 2 years ago | |
requirements.txt | 2 years ago |
This directory contains all validation and testing scripts used by Public APIs.
scripts
│ github_pull_request.sh # used to validate changes of a pull request
│ requirements.txt # contains dependencies of validate package
│
├───tests # contains all unit tests from the validate package
│ test_validate_format.py
│ test_validate_links.py
│
└───validate # validate package
format.py
links.py
To run all tests it is necessary to change to the scripts directory:
$ cd scripts
then run:
$ python -m unittest discover tests/ --verbose
To run only the format tests, run:
$ python -m unittest discover tests/ --verbose --pattern "test_validate_format.py"
To run only the links tests, run:
$ python -m unittest discover tests/ --verbose --pattern "test_validate_links.py"
Note that it is necessary to have python installed.