Django Testing Tutorial - Testing Views #3

preview_player
Показать описание
In this video you will learn how to test our views by sending requests using the Django test client.

7 Tips For Getting Better At Django:

Get the starting point on GitHub:

If you enjoyed this video, make sure to subscribe and share it with anyone you think could enjoy it as well.

I hope to see you inside of the next episode,

Cheers.
Комментарии
Автор

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

krichevskoy
Автор

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

sep
Автор

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

SheezZarR
Автор

It worked for me perfectly. Thank you.

mkrtichhovhannisyan
Автор

Thanks, man! This was really helpful.

RafaelGuedes
Автор

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?

rahulhindocha
Автор

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

mohitsharma
Автор

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

mrpreseclips
Автор

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

Thedevineforce
Автор

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

Yoyo-gfoi
Автор

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

TruthSeekerClub
Автор

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

ProSimples
Автор

Tutorials on testing are hard to come by

jg
Автор

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

MahmoudGamal-xerv
Автор

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

AssertionError: 302 != 200

adambabs
Автор

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

cooller