Back to Browse

W10_L4: Pytest

5.9K views
Feb 3, 2025
24:54

Welcome to Week 10 Lecture 4 of the course "Modern Application Development I" by Profs. Thejesh G N and Nitin Chandrachoodan. Full Course: https://study.iitm.ac.in/ds/course_pages/BSCS2003.html Video Overview This lecture introduces pytest, a powerful and opinionated Python testing framework. We explore how pytest simplifies writing and running tests, its helpful features like automatic environment setup and test fixtures, and how it compares to Python's built-in unittest library. Through practical examples, we demonstrate testing a function, handling exceptions, creating temporary directories, and using pytest to test a Flask web application. Learn how to create test fixtures and client requests to test your Flask endpoints. The lecture also shows how automated testing concepts can be extended for grading purposes. About IIT Madras' online Bachelor of Science programme IIT Madras offers four-year BS programmes that aim to provide quality education to all, irrespective of age, educational background, or location. The BS programme has multiple levels, which provide flexibility to students to exit at any of these levels. Depending on the courses completed and credits earned, the learner can receive a Foundation Certificate from IITM CODE (Centre for Outreach and Digital Education), Diploma(s) from IIT Madras, or BSc/BS Degrees from IIT Madras. For more details, Visit: https://www.iitm.ac.in/academics/study-at-iitm/non-campus-bs-programmes #pytest #Python #testing #framework #unittest #webapp #flask #flasktesting #testfixtures #automatictesting #automatedtesting #modernapplicationdevelopment #softwaretesting

Download

0 formats

No download links available.

W10_L4: Pytest | NatokHD