Feedback on pytest-when plugin

Hi all,

looking for a feedabck on pytest-when plugin (GitHub - zhukovgreen/pytest-when: Pytest plugin for more readable mocking)

With pytest-mock you can define the complex mocking behavior via natural interface:


when(some_object, "attribute").called_with(1, 2).then_return("mocked")

In this case the some_object.attribute(1, 2) == “mocked”. But if it is called with any other arguments, it will return what it is supposed to return.