Session Ready
Exercise

Raises

In this coding exercise, we will define a test function called test_nbconv() that will use the

  • @parametrize decorator to pass three unsupported arguments to our nbconv() function
  • raises() function to make sure that passing each incorrect argument to nbconv() results in a ValueError

As in the previous exercise, we will use show_test_output() to see the test output.

To see an implementation of this test and others, checkout the Nbless package documentation.

Instructions
100 XP
  • Pass the argument set to the test_nbconv() function.
  • Make sure that the correct error is raised if an unsupported argument is passed to the nbconv() function.