datacamp-logo

What causes a unit test to fail?

In the test result report, the character ., as shown below, stands for a passing test. A passing test is good news as it means that your function works as expected. The character F stands for a failing test. A failing test is bad news as this means that something is broken.

test_row_to_list.py .F.                                                  [100%]

Which of the following describes best why a unit test fails?

Answer the question
50 XP
Possible Answers
  • press
  • press
  • press
  • press