Home
Press ? for keyboard navigation
❮
Exercise: test simple module
Pytest a nice Fibonacci example
❯
Pytest expected exception
What if raising an exception is part of the specification of a function?
That given certain (incorrect) input it will raise a certain exception?
How can we test that we get the right exception. The expected exception?
Index (i)
Table of Contents (t)
Indexed keywords (k)
Chapter TOC (d)
Hide/Show (h)