def METHOD_NAME(self, tool):
    args = ["scan", "--cache", "no", "--repo", self.repo.location]
    options, _ = tool.parse_args(args)
    with pytest.raises(CacheDisabled, match="eclass cache support required"):
        init_addon(EclassAddon, options)