Make sure mock was not called?
There are functions for checking the order of calls, but unfortunately there does not seem to be one for checking that a mock was not called.
I tried looking at expect_function_calls()
, but it explicitly checks that count != 0
, while -1
is used for "any", and -2
(and lower?) for "ignore".
Is there anything that I'm missing? Do you think this is useful enough to implement? I only had a quick look, but it seems like the easiest would be to add a whole new list for this purpose than repurposing anything existing.