1 post tagged with "assert"

    asserting errors in pytest

    2022-11-28

     | 

    ~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