Commit graph

51 commits

Author SHA1 Message Date
Alexandre Aubin
4635c555d8
Merge pull request #245 from YunoHost/simplify-interface-init
Simplify interface initialization + ugly optimization hack to speed up parser building
2020-08-14 15:39:31 +02:00
Alexandre Aubin
d40a91ab9b Let's hash the password like we do in core during tests 2020-07-27 20:24:30 +02:00
Kay0u
f2370c0444
don't restart ldap in tests 2020-05-12 19:29:13 +02:00
Kay0u
9f69f04e3f
fix import mock 2020-05-12 19:13:30 +02:00
Kay0u
708b0330d2
black/flake8 2020-05-01 14:03:26 +02:00
Kay0u
e8309384e5
fix tests 2020-05-01 14:00:10 +02:00
Alexandre Aubin
a2a6e6fe7c Attempt to fix the tests :s 2020-05-01 06:11:14 +02:00
Alexandre Aubin
b6258de2db We don't need to be able to disable websocket 2020-05-01 02:43:25 +02:00
Kay0u
0f37a70f27
Fix tests 2020-04-10 00:12:19 +02:00
Alexandre Aubin
2fba2747e3
Drunk Aleks forgot to remove the pdb :| 2020-04-03 20:13:56 +02:00
Alexandre Aubin
78f37782ae Bypass test_mkdir_with_permission if root 2020-04-02 01:31:14 +02:00
Kay0u
a10b40ed8d
Remove _encode_dict 2020-03-30 22:56:22 +02:00
Kay0u
9929d21fdc
test empty_update 2020-01-14 22:42:44 +07:00
Kay0u
b6cb1b5e7e
test with args/extra/type 2020-01-08 23:36:46 +07:00
Kay0u
c603a4e41b
test request with callback 2020-01-08 23:05:34 +07:00
Kay0u
88cdeb0b96
test auth ldap 2020-01-08 01:44:02 +08:00
Kay0u
32711aa034
refactor, and use fixture for ldap_server 2020-01-08 01:38:03 +08:00
Kay0u
6ee7caebd1
full tests for ldap.py 2020-01-08 00:09:12 +08:00
Kay0u
f05cc2c66a
test_ldap... to be continued 2020-01-07 17:47:50 +08:00
Kay0u
6a5971bb3c
better fix for lockfile 2020-01-07 01:15:26 +08:00
Kay0u
1bf566401d
fix tests 2020-01-02 23:50:21 +08:00
Kay0u
6490184333
format 2020-01-02 23:41:21 +08:00
Kay0u
247411cb9f
make flake8 happy 2020-01-02 23:39:35 +08:00
Kay0u
1cfec24ac2
fix moulinette cli _do_authenticate 2020-01-02 23:17:32 +08:00
Kay0u
3abde9c008
default use global conf 2020-01-02 12:59:16 +08:00
Kay0u
fdb4db0124
add more test for auth 2020-01-02 12:33:51 +08:00
Kay0u
535f4bcb3b
moulinette_cli fixture 2020-01-02 12:33:10 +08:00
Kay0u
9315cab495
add more tests case 2020-01-02 12:32:57 +08:00
Kay0u
ce5d7ddaf0
fix conf authenticate all 2020-01-02 12:31:35 +08:00
Kay0u
a83923f831
moving some lines 2020-01-02 12:11:10 +08:00
Kay0u
064ff259bd
fix test_process 2020-01-02 01:02:47 +08:00
Kay0u
315db8ac71
more tests for actionmap 2019-12-28 23:31:23 +08:00
Kay0u
6d255bd839
install_requires: python-ldap 2019-12-22 18:16:54 +08:00
Kay0u
6edc021f83
Add more tests 2019-12-22 00:36:20 +08:00
decentral1se
54b8cab133 Apply Black on all the code base 2019-11-25 17:21:13 +01:00
Alexandre Aubin
952d707362 Make the linter gods happy 2019-11-20 00:27:34 +01:00
Alexandre Aubin
9b475f092e Fix broken test due to change in function name 2019-11-20 00:12:19 +01:00
Alexandre Aubin
53ab4709d1 Rewrite auth tests in a more clean way, now using webtest to run the API 2019-11-19 21:12:58 +01:00
Alexandre Aubin
9fda7f4716 Merge branch 'stretch-unstable' into simplify-auth-mechanism 2019-11-19 16:55:06 +01:00
Alexandre Aubin
19348421b0
monkeypatch and tmp_path not used
Co-Authored-By: Timost <Timost@users.noreply.github.com>
2019-11-19 14:33:49 +01:00
Alexandre Aubin
d3496425aa
monkeypatch and tmp_path not used
Co-Authored-By: Timost <Timost@users.noreply.github.com>
2019-11-19 14:32:28 +01:00
Luke Murphy
cef72f7de9
Add some unit tests for the actionsmap module 2019-09-11 00:47:10 +01:00
Luke Murphy
2c84ee1541
Add tests for text/serialize modules
Also take a pass on the docstrings.
2019-08-28 17:57:16 +02:00
Alexandre Aubin
2addea1e08 Implement basic tests for auth mechanism 2019-08-23 02:37:57 +02:00
Alexandre Aubin
82ba7e5b04 Moar things to run tests correctly on the API 2019-08-22 12:30:26 +02:00
Alexandre Aubin
6d44c46740 Be able to run test on the API 2019-08-22 03:27:31 +02:00
Luke Murphy
7b6ff983cd
Appease linter with right spacing 2019-08-01 16:54:55 +02:00
Luke Murphy
14a3d63453
Test the cache file opening and creation 2019-07-28 22:04:07 +02:00
Laurent Peuch
69b0d496dd [fix] fix all tests that weren't formatting translated strings correctly 2019-07-28 21:38:37 +02:00
Luke Murphy
c70bfe5589
Invoke Pytest fixture options correctly 2019-07-20 10:44:39 +02:00