-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests as data files #2
Conversation
If I understand this PR correctly, this will include the |
correct, since your custom client is required to run tests when user On Mon, Jan 6, 2014 at 7:21 PM, Bouke Haarsma notifications@github.comwrote:
Horacio Durán |
Ah okey, thanks. That would be useful to add indeed! I will investigate the effects of adding the code. Could you stash the commits into a single commit? |
sure, I will do it tomorrow :) I am seeking the best way to do it since On Mon, Jan 6, 2014 at 7:27 PM, Bouke Haarsma notifications@github.comwrote:
Horacio Durán |
Ah okey, yes. Maybe the |
Here it makes more sense this way, client is as an util for tests, it looks indeed cleaner. |
|
||
class Client(BaseClient): | ||
""" | ||
Custom implementation of django.test.Client, it is required to perform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you start with a single line explanation first? Like this:
"""
Custom implementation of django.test.Client
It is required to perform tests that require to login in sites using
django-user-sessions since its implementation of SessionStore has to
required parameters which is not in concordance with what is expected
from the original Client.
"""
Looks good to me. If you could make the documentation change and squash the commits, I'll merge it in! |
…t is available to users installing the egg only * Changed comments format to suit the project's requirements
There, I think it looks nice now, it follows the formatting of the rest and has been squashed into one commit |
Thanks for your contribution, I appreciate your effort! 👍 |
We are using your module and it helps a lot, it is the least I could do, On Tue, Jan 7, 2014 at 12:26 PM, Bouke Haarsma notifications@github.comwrote:
Horacio Durán |
Tests file provides a client implementation that works with the non standard sessionengine, they need to be added to the data files so they are provided for third party users when they try to write tests while using this module