Unit Testing Flask API with Unittest | Build and Deploy A REST API with Flask #11

preview_player
Показать описание
In this video, we look at how to write unit tests using unittest module which comes as part of Python's standard library. We also look at how we can use Pytest as a test runner for our test cases.

SOURCE CODE:

GITHUB:

TWITTER:
Рекомендации по теме
Комментарии
Автор

wonderful explanation of how to create test cases, thanks

raghavsharma
Автор

Thank you so much for your Flask tutorials. I am almost done with this Flask Rest API tutorials. I learned a lot, and thumb up for everyone. For now I have a question, when I tested a path, I don't know, when I need to put "/" in the end, when I shouldn't put "/". I thought this mistake repeatly happened before when I used postman for test CRUD. For example: '/auth/login' and 'orders/orders/' Thank you.

liuyan
Автор

Hey man, great video, but I didn't get what the app_context is can you make a video on that please? and what's the role of it here

bottlevines
Автор

Hello! How would you recommend testing my Flask API if I'm using a postgreSQL database, since postgreSQL can't have an in-memory database

jmont
Автор

Hii bro I have doubt in this topic... Shall we connect in Google meet??

AjayKumar-pwxy
Автор

Thanks for video. I`m dont understand, why login status_code = 200 is not working?

SaintDaemon
join shbcf.ru