Тёмный

Django Testing Tutorial - How To Set Up Tests And Testing URLs #2 

The Dumbfounds
Подписаться 13 тыс.
Просмотров 101 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@stealthwolf1
@stealthwolf1 5 лет назад
By far the best tutorial I have found on this topic
@kareemashrafYT
@kareemashrafYT Год назад
what is this terminal , does it run in windows or linux ? , nice tutorial bro
@juanignaciodelossantos248
@juanignaciodelossantos248 Год назад
Thank you bro. Really useful video
@rezakhalafi528
@rezakhalafi528 Год назад
Exactly what I was looking for. Thank you.
@FernandoPosserPinheiro
@FernandoPosserPinheiro 3 года назад
Best explanation that I seeso far. Congrats!
@nicosagrav
@nicosagrav 10 месяцев назад
awesome! You saved me!
@AmitTiwari-wf1xj
@AmitTiwari-wf1xj 2 года назад
Thank you. From where we get that 'list'. I am referring to => url = reverse('list')
@agsghagh7762
@agsghagh7762 Год назад
It's the name of url path
@oozi9855
@oozi9855 2 года назад
Is there a way to test an int instead of slug in dynamic url?
@wordpresswithusama7623
@wordpresswithusama7623 5 лет назад
Got Best video about Unit Test in Django
@ChaosArtist
@ChaosArtist 2 года назад
Very helpful. Thanks for this video.
@RuslanSkiraUkraine
@RuslanSkiraUkraine 3 года назад
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.
@varunrawat5654
@varunrawat5654 3 года назад
very useful video. thanks and keep up the awesome work
@magnuslundstrm3719
@magnuslundstrm3719 3 года назад
Seems like the urls testing with reserve isn't working with urls that has params. Any ideas? Thanks for great content tho! :-)
@magnuslundstrm3719
@magnuslundstrm3719 3 года назад
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
@RajeshKumar-sy6jy
@RajeshKumar-sy6jy Год назад
Awesome content
@salimbo4577
@salimbo4577 3 года назад
is there a difference between virtualenv and virtualenvwrapper ?
@Salah-hh4jq
@Salah-hh4jq 3 года назад
thanks bro for those topics would you recommend any readable tutorial for Django testing ?
@thedumbfounds767
@thedumbfounds767 3 года назад
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!
@fatemehyosefi1018
@fatemehyosefi1018 2 года назад
Thanks a lot😍😍
@cecilmonk
@cecilmonk 4 года назад
Would be nice to have a link to the github in the description.
@N63B44TÜ
@N63B44TÜ 4 года назад
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
@thedumbfounds767
@thedumbfounds767 4 года назад
Yep, happens too often when copy-pasting :D
@kenjohnsiosan9707
@kenjohnsiosan9707 5 лет назад
nice vid sir...more on testing examples please. thanks
@thedumbfounds767
@thedumbfounds767 5 лет назад
Thanks Ken, more examples are on their way!
@heathergray4880
@heathergray4880 2 года назад
Can't this be tested in the views testing?
@cscorner9282
@cscorner9282 3 года назад
how would you test an insert function
@KevinTempelx
@KevinTempelx 4 года назад
Thanks!
@rohansingh132
@rohansingh132 4 года назад
Hi, How do I assert equal a function inside a class?
@chrisoconnor6313
@chrisoconnor6313 4 года назад
Bro your a legend! Thanks so much
@cortessensacionalistas7149
@cortessensacionalistas7149 3 года назад
Obrigado! (Thank You)!
@arpanbagui4563
@arpanbagui4563 3 года назад
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?
@krisskad
@krisskad 3 года назад
function name must start with the "test" word.
@arpanbagui4563
@arpanbagui4563 3 года назад
@@krisskad Thank you
@arush6778
@arush6778 3 года назад
in terminal : py manage.py test
@younesboukroun3060
@younesboukroun3060 4 года назад
Thank You for the videos, but it still a while not clear
@ivanabregu1
@ivanabregu1 5 лет назад
Thanks!!
@mrfun9841
@mrfun9841 5 лет назад
The best
@anaduenas8381
@anaduenas8381 5 лет назад
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
@AhmedGamal-kd9lh
@AhmedGamal-kd9lh 5 лет назад
heeeelp !!! @The Dumbfounds
@enes222
@enes222 3 года назад
Why you don't try to use 'path('', HomeView , name='home')' instead of unnecessarily RE?
@sriharsha825
@sriharsha825 5 лет назад
what if there is app name? what should be in reverse(' ')
@thedumbfounds767
@thedumbfounds767 5 лет назад
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').
@sriharsha825
@sriharsha825 5 лет назад
@@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')
@thedumbfounds767
@thedumbfounds767 5 лет назад
@@sriharsha825 reverse('foo:bar', args=[arg1, arg2]). You can also use kwargs I think.
@sriharsha825
@sriharsha825 5 лет назад
@@thedumbfounds767 thanks man Keep pushing the new content
@thedumbfounds767
@thedumbfounds767 5 лет назад
@@sriharsha825 new content is on the way :)
@RandalSitra
@RandalSitra 3 года назад
check the repository why there is no requirements.txt file? github.com/TheDumbfounds/budget-application-tutorial
@himanshuparashar5883
@himanshuparashar5883 2 года назад
aadrika ki kitni gandi soch hain
@parry9
@parry9 2 года назад
Bohot gandi soch sach me Aaj kal ke baccho ko kya ho gaya g
@sergey5551
@sergey5551 3 года назад
Exactly what I was looking for. Thank you.
Далее
Django Testing Tutorial - Testing Views #3
16:28
Просмотров 79 тыс.
How many can you smash?🍫 IB : Florin
00:19
Просмотров 2,9 млн
Бекенд на Django, Урок 2: Unit Tests
44:15
Python Django REST API In 30 Minutes - Django Tutorial
30:42
Django Rest Framework | Serializers & CRUD
22:40
Просмотров 388 тыс.
Django | Unit Testing with Pytest
20:13
Просмотров 12 тыс.
REST API Testing with Django REST Framework
14:41
Просмотров 38 тыс.
Writing your first Django test using pytest-django
13:28