Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[enh] Add unit/functional tests for apps #779
We don't have tests for apps '-'
Implement some ...
Tested on my machine, but still need to implement at least 3 of them
I think I spotted an important issue related to LDAP group permissions related to failed remove, gotta investigate
How to test
Run the tests using ynh-dev or pytest manually
It's not clear to me how to reproduce ... but basically some times I ended up with the check_ldap_db_consistency failing because some remaining permission existed for an app that was supposed to be uninstalled ... That might be because I was tweaking a lot of code and the remove operation was sometime failing because before the part where it removes the thing from ldap.
So maybe I'll just wrap stuff in try/except to avoid that kind of things in the future even though that seems to happen mainly during dev.
Yes, in the context of a post-installed yunohost. I use
The whole triptic of PR is a mess : this one is based on #785 itself based on #769 so i temporarily changed the base branch to this one is based on #785 in case you want to read the relevant commit of this PR easily...