|
|
8 лет назад | |
|---|---|---|
| .. | ||
| .gitignore | 8 лет назад | |
| .gitlab.yml | 8 лет назад | |
| README.md | 8 лет назад | |
| __init__.py | 8 лет назад | |
| hello_world.py | 8 лет назад | |
| nose2.cfg | 8 лет назад | |
| requirements.txt | 8 лет назад | |
| test.py | 8 лет назад | |
Un script python hello_world.
hello_world.py: Script python, instancie une fonctionmain()` qui renvoie un message de salutations.
__init__.py : Fichier qui peut rester vide, mais nécessaire pour que le répertoire soit reconu comme une librairie python.
test.py : Contient les tests unitaires
nose2.cfg : (facultatif) configuration de nose2
Pour exécuter les tests, ouvrir une console (invite de commande):
Installer les librairies nécessaires:
pip install -r requirements.txt
Tests unitaires et couverture
nose2
Syntaxe
pylint