Skip to content

5. Testing

Simon Kinet edited this page Aug 22, 2022 · 2 revisions

Tableau de valeurs input/output

Méthode add:

Input Output
admin raphael 'Le rôle a correctement été ajouté !'
admin ValueError
admin zz ValueError
zz raphael ValueError

Méthode show utilsateur role :

Input Output
admin 'Utilisateur(s) ayant le rôle admin : simon'
user 'Utilisateur(s) ayant le rôle admin : simon, raphael'
0 ValueError
zz ValueError
ValueError

Méthode show perm :

Input Output
admin 'test'
user 'test'
0 ValueError
zz ValueError
ValueError

Méthode del :

Input Output
admin raphael 'Le rôle a correctement été supprimé !'
admin ValueError
admin zz ValueError
zz raphael ValueError

Méthode addTo :

Input Output
admin test zz ValueError
admin zz simon raphael ValueError
admin test simon raphael 'Le rôle a correctement été ajouté !'

Méthode show role :

Input Output
'Roles 3 : test'

Clone this wiki locally