|
|
%!s(int64=8) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| .gitignore | %!s(int64=8) %!d(string=hai) anos | |
| .gitlab.yml | %!s(int64=8) %!d(string=hai) anos | |
| README.md | %!s(int64=8) %!d(string=hai) anos | |
| __init__.py | %!s(int64=8) %!d(string=hai) anos | |
| hello_world.py | %!s(int64=8) %!d(string=hai) anos | |
| nose2.cfg | %!s(int64=8) %!d(string=hai) anos | |
| requirements.txt | %!s(int64=8) %!d(string=hai) anos | |
| test.py | %!s(int64=8) %!d(string=hai) anos | |
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