1 post tagged with "raises"

    asserting errors in pytest

    2020-07-18

     | 

    ~6 min read

     | 

    1053 words

    Imagine a function that, under certain conditions expects to throw an error. How might we test that with Pytest? Pytest offers two…

Return to all tags