Added unbind_s, search_ext and result3 support; changed rename_s to work how python-ldap does - #22
Added unbind_s, search_ext and result3 support; changed rename_s to work how python-ldap does#22cmalek wants to merge 13 commits into
Conversation
This allows us to mock paged searches.
…st with a bytes-aware JSON encoder This avoids the tuple -> list hacks.
This allows you to debug exactly what your call arguments are so you can set up your mock data more accurately
Mostly linters and nose.
|
If you can, it'd be nice if you can clean up the commits to follow the Zulip commit guidelines: https://zulip.readthedocs.io/en/latest/contributing/version-control.html#commit-messages We're less strict about them with this project (which we adopted some time ago), but I think it'd be quite helpful for reviewing this efficiently to have real commit messages. @mateuszmandera I assume you'll take point on reviewing this (we should at the very least make sure it doesn't break the zulip/zulip test suite). |
|
Will do! Thank you for replying! I'd been using mock and patch on my LDAP test code for years, and using fakeldap is sooo much cleaner, so I appreciate your work here. |
|
@cmalek just a bump on cleaning up the commit history. |
|
@cmalek Just a bump on this -- our team would be very happy to see this functionality merged :) |
|
This is a bit late of a reply, but @dill0wn or anyone else who comes across this, feel free to submit a new PR that cleans this up. |
|
I actually ended up writing my own project for this that did more of what I needed. https://python-ldap-faker.readthedocs.io/en/latest/ |
Hello
Thank you for your fakeldap module!
I've added a few things that we needed in order to test our code, and also did some PEP8 fixes to make my linter happy.
best wishes
Chris