Fix call to mock.called_once_with in tests
This MR fixes a broken test exposed by Python 3.12 due to an invalid usage of called_once_with()
in a mock.
This MR fixes a broken test exposed by Python 3.12 due to an invalid usage of called_once_with()
in a mock.