Django Testing Tutorial - Testing Views #3

Django Testing Tutorial - Testing Views #3

The Dumbfounds

5 лет назад

77,477 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

rxfactor
rxfactor - 20.09.2023 16:33

Thanks, man! This was really helpful.

Ответить
Basharat Mir
Basharat Mir - 30.12.2022 09:07

Thank u so much, helped

Ответить
Mark Benschop
Mark Benschop - 22.12.2022 16:01

Thank you very much for this great video series ! I just started with django tests and this is a great help. Thanks again :)

Ответить
Cooller
Cooller - 17.12.2022 17:58

dude this extra function is so dull, why just why.... totally ruined the progress for me, why would anybody wanna do such nonsense....

Ответить
Dejan Jovanovic
Dejan Jovanovic - 28.05.2022 17:37

you suck in explaining so bad

Ответить
Laharl Krichevskoy
Laharl Krichevskoy - 27.05.2022 17:35

very nice QOL changes, me and my group working on our project using this hehe

Ответить
Truth Seeker
Truth Seeker - 24.04.2022 02:44

hey man,
in post expenses you added the body to client.post(url, {content})
but you have not create an object from it.
so how the expense was created?
and how it was added to the project!
why did it work without creating object and add it to db with relation to project1

Ответить
Mkrtich Hovhannisyan
Mkrtich Hovhannisyan - 12.10.2021 22:34

It worked for me perfectly. Thank you.

Ответить
Mrprese clips
Mrprese clips - 01.07.2021 14:48

Hello i wonder why pycharm throw me “ reverse for ‘list’ not found

Ответить
Rahul Hindocha
Rahul Hindocha - 28.04.2021 16:43

Hey man...great content. Good explanations given by you. But I had a doubt. You were creating some objects of different models in the tests. Are these objects also created in our database or they are just for testing only?

Ответить
Veena K
Veena K - 01.01.2021 21:28

@The Dumbfounds Please link the exact github project path to the code you are using in the tutorial

Ответить
Andrew Kimani
Andrew Kimani - 08.11.2020 14:28

Thanks man!!! Keep up the good work

Ответить
Vijaysinh Parmar
Vijaysinh Parmar - 10.09.2020 11:06

whats your urls file?

Ответить
Alan Watts
Alan Watts - 29.07.2020 21:20

Really nice!

Ответить
Ai Zhang
Ai Zhang - 27.06.2020 06:29

best tutorial ever!

Ответить
Elias Prado
Elias Prado - 22.06.2020 03:57

I've got this error:
postgres' database and will use the first PostgreSQL database instead.
warnings.warn(
Got an error creating the test database: permission denied to create database
I dont know how to fix... :\. Django 3

Ответить
Adam Babs
Adam Babs - 02.05.2020 12:20

I am doing it the exact same way and I am getting:

AssertionError: 302 != 200

Ответить
J G
J G - 11.02.2020 12:53

Tutorials on testing are hard to come by

Ответить
Mohit Sharma
Mohit Sharma - 23.12.2019 09:59

where did that "expenses" come from in "self.assertEquals(self.project1.expenses.first().title, 'expense1')"

Ответить
N63B44TÜ
N63B44TÜ - 26.11.2019 20:13

Thx a lot, great like always!

Ответить
Yoyo
Yoyo - 04.09.2019 17:56

I thought this would come in handy, however you dont really explain what is happening, what each part does etc. This is just a video of someone writing code and narrating what he writes but without any explanation. Its great if the person wants to copy/paste and not understand, but for the long term thinkers, no explanation mean no understanding. Thumbs down

Ответить
Mahmoud Gamal
Mahmoud Gamal - 28.06.2019 19:46

200 = mean first check at code 200 and if i have article and i want test 1000 . just replace 200 by 1000 ?

Ответить
SheezZarR
SheezZarR - 15.05.2019 13:34

Thanks for the tutorial, It's very helpful for a beginner.

Ответить