Mocking util.validate_repo of the pakrat module to get around the type-checking error.