mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Introducing test files for missing module tests
This commit is contained in:
parent
74ae352221
commit
1c90091132
12 changed files with 23 additions and 0 deletions
23
notes.txt
Normal file
23
notes.txt
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# running 2to3 on moulinette folder
|
||||||
|
|
||||||
|
$ 2to3 -w .
|
||||||
|
|
||||||
|
# creating test filesystem structure
|
||||||
|
|
||||||
|
$ mkdir tests
|
||||||
|
$ mkdir tests/moulinette/{authenticators,interfaces,utils}
|
||||||
|
|
||||||
|
# move existing tests to new structure
|
||||||
|
|
||||||
|
$ mv moulinette/utils/tests/* tests/moulinette/utils
|
||||||
|
|
||||||
|
# we should have (at least) one test file per moulinette module
|
||||||
|
|
||||||
|
$ for f in $(find moulinette -type f | grep -v __init__)
|
||||||
|
do
|
||||||
|
folder=$(dirname $f)
|
||||||
|
file=$(basename $f)
|
||||||
|
touch tests/$folder/test_$file
|
||||||
|
done
|
||||||
|
|
||||||
|
|
0
tests/moulinette/authenticators/test_ldap.py
Normal file
0
tests/moulinette/authenticators/test_ldap.py
Normal file
0
tests/moulinette/interfaces/test_api.py
Normal file
0
tests/moulinette/interfaces/test_api.py
Normal file
0
tests/moulinette/interfaces/test_cli.py
Normal file
0
tests/moulinette/interfaces/test_cli.py
Normal file
0
tests/moulinette/test_actionsmap.py
Normal file
0
tests/moulinette/test_actionsmap.py
Normal file
0
tests/moulinette/test_cache.py
Normal file
0
tests/moulinette/test_cache.py
Normal file
0
tests/moulinette/test_core.py
Normal file
0
tests/moulinette/test_core.py
Normal file
0
tests/moulinette/test_globals.py
Normal file
0
tests/moulinette/test_globals.py
Normal file
0
tests/moulinette/utils/test_log.py
Normal file
0
tests/moulinette/utils/test_log.py
Normal file
0
tests/moulinette/utils/test_serialize.py
Normal file
0
tests/moulinette/utils/test_serialize.py
Normal file
0
tests/moulinette/utils/test_stream.py
Normal file
0
tests/moulinette/utils/test_stream.py
Normal file
0
tests/moulinette/utils/test_text.py
Normal file
0
tests/moulinette/utils/test_text.py
Normal file
Loading…
Add table
Reference in a new issue