This repository has been archived by the owner on Nov 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Questions #1
Comments
@guinslym sorry for the late answer, didn't see the email notifications and I was sick for the past four weeks or so.
|
OMG!!! sorry I didn't see your reply. I am not using Github intensively now as I used to in the summer. Thanks for the reply. I will put your explication into practice. |
@guinslym don't worry. Github gets overwhelming with messages quickly, so most people reply with huge delay (especially myself). It's normal :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Great talk!
I don't know where can I had my questions
()()
pattern i.e.views.PostUpdateView.as_view()(req, pk=post.pk)
. Could you elaborate more on this pattern or refer me to a documentationself.get.client()
instead of theRequestFactory()
because we can test the template ('birdie/update.html') also. Because right now, we seems to only mock the template. For the benefit of this meetup's workshop usingRequestFactory
is faster but in a day to day test do you useself.get.client()
tests_views.py
in the method thetest_security(self):
Why we don't write anAssert
for 404 like we did forassert post.body == 'New Body Text!', 'Should update the post'
req.user = AnonymousUser()
we added instead on the previous testtest_post(self)
. I tought that ever test needs to create a new user session (or object)The text was updated successfully, but these errors were encountered: