HomeSoftware Heritage

tests: Refactor using pytest-mock's mocker fixture