Тёмный

Getting Started With Testing in Flask 

Pretty Printed
Подписаться 96 тыс.
Просмотров 24 тыс.
50% 1

In this video I introduce integration testing a Flask app. You'll learn how to use the test client and how to mock API requests inside a test among other things.
Get the code I wrote in this video: prettyprinted.com/l/Hgv
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Twitter: / pretty_printed
Github: github.com/prettyprinted

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

 

29 ноя 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@zhengliu3362
One strange thing: it seems the login form does not have an CSRF token. I think it's oversimplified here due to lack of the token. How do you test login and register if the login form in login.html has this token?
@karlduckett
@karlduckett Год назад
Thanks Anthony - glad you are still creating Flask / Python videos.
@JayZhang-hf7lu
This is super helpful! How do you clean the database everytime you finished testing though? I found the memory sqlite always keeping data
@GraemeMeyer
Really wish you'd mentioned it was Mac only up front
@jaredbarber2824
@jaredbarber2824 Год назад
Do you have a video where you made the app? I can't get it to run.
@alexanderantonio5239
so far I have got that tests are made to test a functionality. Do tests need to always pass or always fail??
@egekaplan8478
So zen… Beautiful
@yomajo
@yomajo Год назад
Thanks for vid! Have a question... Lets say flask app is dockerized. Uses rq worker, redis, postgres as compose services. How should one thing about testing such application?
@cantis
@cantis Год назад
So this is doing tests against an in memory database vs mocking… is there a guideline for this?
@papercut._.
@papercut._. Год назад
You're a legend!
@rastaricky9584
@rastaricky9584 Год назад
Thank you! You are an AMAZING teacher!!!
@biswajit-k
@biswajit-k Год назад
Thanks Anthony, very helpful and informative :)
@mutsukira
@mutsukira Год назад
Thank you, simple and clear.
@luisleon4817
@luisleon4817 Год назад
Thank you man, you are the python man
@amar101_16
@amar101_16 Год назад
Very helpful... Thanks a lot
@wintermute3d
@wintermute3d Год назад
Quality content! Thanks a lot
@soyciro4623
@soyciro4623 Год назад
Pretty cool video! Please keep it up!
@rangabharath4253
@rangabharath4253 Год назад
Awesome as always 😀
@walkdead94
@walkdead94 Год назад
Thank you! I'm not sure what do you use to login, but I really wanted to know how to test the login/logout behavior
@mahmoudessam7525
@mahmoudessam7525 Год назад
Thanks a lot :)
Далее
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Просмотров 6 млн
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌹
3:09:38
Unit Testing in Python
26:25
Просмотров 22 тыс.
React Testing for Beginners: Start Here!
1:17:14
Просмотров 75 тыс.
Rest API - Best Practices - Design
15:50
Просмотров 100 тыс.
Accepting Payments in Flask Using Stripe Checkout
32:50
Intro to Flask Blueprints
9:15
Просмотров 48 тыс.