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

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 53

  • @stealthwolf1
    @stealthwolf1 5 років тому +9

    By far the best tutorial I have found on this topic

  • @wordpresswithusama7623
    @wordpresswithusama7623 5 років тому +2

    Got Best video about Unit Test in Django

  • @juanignaciodelossantos248
    @juanignaciodelossantos248 Рік тому +1

    Thank you bro. Really useful video

  • @sergey5551
    @sergey5551 3 роки тому +2

    Exactly what I was looking for. Thank you.

  • @FernandoPosserPinheiro
    @FernandoPosserPinheiro 3 роки тому +2

    Best explanation that I seeso far. Congrats!

  • @nicosagrav
    @nicosagrav Рік тому +1

    awesome! You saved me!

  • @ChaosArtist
    @ChaosArtist 2 роки тому +1

    Very helpful. Thanks for this video.

  • @RajeshKumar-sy6jy
    @RajeshKumar-sy6jy 2 роки тому +1

    Awesome content

  • @fatemehyosefi1018
    @fatemehyosefi1018 2 роки тому +1

    Thanks a lot😍😍

  • @varunrawat5654
    @varunrawat5654 3 роки тому +2

    very useful video. thanks and keep up the awesome work

  • @AmitTiwari-wf1xj
    @AmitTiwari-wf1xj 2 роки тому +1

    Thank you. From where we get that 'list'. I am referring to => url = reverse('list')

  • @N63B44TÜ
    @N63B44TÜ 5 років тому +1

    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

  • @kareemashrafYT
    @kareemashrafYT Рік тому +1

    what is this terminal , does it run in windows or linux ? , nice tutorial bro

  • @oskarciesla
    @oskarciesla 2 роки тому +2

    Is there a way to test an int instead of slug in dynamic url?

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 6 років тому +2

    nice vid sir...more on testing examples please. thanks

  • @KevinTempelx
    @KevinTempelx 4 роки тому +1

    Thanks!

  • @Salah-hh4jq
    @Salah-hh4jq 3 роки тому +1

    thanks bro for those topics
    would you recommend any readable tutorial for Django testing ?

    • @thedumbfounds767
      @thedumbfounds767  3 роки тому +4

      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!

  • @salimbo4577
    @salimbo4577 3 роки тому +1

    is there a difference between virtualenv and virtualenvwrapper ?

  • @cortessensacionalistas7149
    @cortessensacionalistas7149 4 роки тому +2

    Obrigado! (Thank You)!

  • @cscorner9282
    @cscorner9282 3 роки тому +1

    how would you test an insert function

  • @magnuslundstrm3719
    @magnuslundstrm3719 3 роки тому +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 роки тому +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

  • @RuslanSkiraUkraine
    @RuslanSkiraUkraine 3 роки тому +1

    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.

  • @heathergray4880
    @heathergray4880 2 роки тому +1

    Can't this be tested in the views testing?

  • @chrisoconnor6313
    @chrisoconnor6313 4 роки тому +1

    Bro your a legend! Thanks so much

  • @ivanabregu1
    @ivanabregu1 5 років тому +1

    Thanks!!

  • @mrfun9841
    @mrfun9841 5 років тому +1

    The best

  • @cecilmonk
    @cecilmonk 5 років тому +2

    Would be nice to have a link to the github in the description.

  • @rohansingh132
    @rohansingh132 4 роки тому +1

    Hi, How do I assert equal a function inside a class?

  • @arpanbagui4563
    @arpanbagui4563 3 роки тому +1

    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 роки тому +1

    Thank You for the videos, but it still a while not clear

  • @sriharsha825
    @sriharsha825 6 років тому +1

    what if there is app name?
    what should be in reverse(' ')

    • @thedumbfounds767
      @thedumbfounds767  6 років тому +6

      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 6 років тому

      @@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  6 років тому

      @@sriharsha825 reverse('foo:bar', args=[arg1, arg2]). You can also use kwargs I think.

    • @sriharsha825
      @sriharsha825 6 років тому

      @@thedumbfounds767 thanks man
      Keep pushing the new content

    • @thedumbfounds767
      @thedumbfounds767  6 років тому

      @@sriharsha825 new content is on the way :)

  • @anaduenas8381
    @anaduenas8381 5 років тому +1

    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?

  • @RandalSitra
    @RandalSitra 4 роки тому

    check the repository
    why there is no requirements.txt file?
    github.com/TheDumbfounds/budget-application-tutorial

  • @himanshuparashar5883
    @himanshuparashar5883 3 роки тому +1

    aadrika ki kitni gandi soch hain

    • @parry9
      @parry9 3 роки тому

      Bohot gandi soch sach me
      Aaj kal ke baccho ko kya ho gaya g

  • @rezakhalafi528
    @rezakhalafi528 Рік тому +3

    Exactly what I was looking for. Thank you.