Could you please make the video on how to work with the Docker+DjangoTests I stuck on this error. Got an error creating the test database: database "test_postgres" already exists. And I think It is because of lack of knowledge in this district.
okay you had already answerd that in another question. Just for people looking for it like me I will write it here, here is an example: url = reverse("ranks_app:change_customer_rank", args=[1]) ----- so the args=[1] will represent a customer id
if there is a namespace, the syntax is: reverse(':'). So, if the namespace was 'budget' and the path name is list, then it would be: reverse('budget:list').
@@thedumbfounds767 thank you very much.But i have come across another error. How to write reverse if i have pass arguments for function? I tried response = self.client.get(reverse('customer:review'),categ=[1],product=[2]) for path('review///',views.reviewtext,name='review')
what if I have this kind of url: (url(r'^$', views.index, name='index')). What should I put on the reverse statement, I put reverse('index') but it says that there is not reverse match. :C
By far the best tutorial I have found on this topic
Got Best video about Unit Test in Django
Best explanation that I seeso far. Congrats!
awesome! You saved me!
Exactly what I was looking for. Thank you.
Thank you bro. Really useful video
Awesome content
Very helpful. Thanks for this video.
Thanks a lot😍😍
Thank you. From where we get that 'list'. I am referring to => url = reverse('list')
It's the name of url path
Is there a way to test an int instead of slug in dynamic url?
very useful video. thanks and keep up the awesome work
what is this terminal , does it run in windows or linux ? , nice tutorial bro
thx for the video
At 9:41 you have ran just one test because you did not change the name of second test function i think
Yep, happens too often when copy-pasting :D
nice vid sir...more on testing examples please. thanks
Thanks Ken, more examples are on their way!
Could you please make the video on how to work with the Docker+DjangoTests
I stuck on this error.
Got an error creating the test database: database "test_postgres" already exists.
And I think It is because of lack of knowledge in this district.
Still after adding __init__.py & following the same file structure I got this message 'Ran 0 tests in 0.000s'. Can anyone help me out?
function name must start with the "test" word.
@@krisskad Thank you
in terminal : py manage.py test
how would you test an insert function
is there a difference between virtualenv and virtualenvwrapper ?
Thanks!
Bro your a legend! Thanks so much
Seems like the urls testing with reserve isn't working with urls that has params. Any ideas? Thanks for great content tho! :-)
okay you had already answerd that in another question. Just for people looking for it like me I will write it here, here is an example:
url = reverse("ranks_app:change_customer_rank", args=[1]) ----- so the args=[1] will represent a customer id
thanks bro for those topics
would you recommend any readable tutorial for Django testing ?
A bit of a late reply, but what was most helpful to me was the book "Obey the testing goat". Very good intro to TDD as well!
Hi, How do I assert equal a function inside a class?
Can't this be tested in the views testing?
Obrigado! (Thank You)!
Would be nice to have a link to the github in the description.
Thanks!!
The best
Thank You for the videos, but it still a while not clear
what if there is app name?
what should be in reverse(' ')
if there is a namespace, the syntax is: reverse(':'). So, if the namespace was 'budget' and the path name is list, then it would be: reverse('budget:list').
@@thedumbfounds767 thank you very much.But i have come across another error.
How to write reverse if i have pass arguments for function? I tried
response = self.client.get(reverse('customer:review'),categ=[1],product=[2])
for
path('review///',views.reviewtext,name='review')
@@sriharsha825 reverse('foo:bar', args=[arg1, arg2]). You can also use kwargs I think.
@@thedumbfounds767 thanks man
Keep pushing the new content
@@sriharsha825 new content is on the way :)
what if I have this kind of url: (url(r'^$', views.index, name='index')). What should I put on the reverse statement, I put reverse('index') but it says that there is not reverse match. :C
heeeelp !!! @The Dumbfounds
Why you don't try to use 'path('', HomeView , name='home')' instead of unnecessarily RE?
check the repository
why there is no requirements.txt file?
github.com/TheDumbfounds/budget-application-tutorial
aadrika ki kitni gandi soch hain
Bohot gandi soch sach me
Aaj kal ke baccho ko kya ho gaya g
Exactly what I was looking for. Thank you.