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

Challenge: Test cases from file - Python Tutorial

From the course: Managing Python Projects

Start my 1-month free trial

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.

Contents