From the course: Managing Python Projects
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Challenge: Test cases from file - Python Tutorial
From the course: Managing Python Projects
Challenge: Test cases from file
“
(pleasant electronic music) - [Instructor] Write a parametrized test for mathlib.sqrt that will read the test cases from a file. This file has one JSON object per line. Each object has the value, the expected output, and an indicator if the function should error or not.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.