Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is unit testing?
Think about testing components in isolation.
Which module in Python is used for logging?
Consider how you would set it up in a Python script.
What is the primary goal of unit testing?
Why do we validate code?
Is it possible to log to a file using Python's logging module?
How do you manage logs in applications?
Write a unit test for a function that calculates the factorial of a number using unittest.
Consider using assertEqual for your test cases.
Design a logging configuration that logs debug messages to a file while also displaying warnings and errors on the console.
Think about how to separate concerns in logging.
4 more questions in this section. Enroll free to practise them all.
Enroll free