def METHOD_NAME(self, repository_config):
    responses.add(
        responses.GET,
        f"{self.base_url}/2.0/repositories/{self.repo.name}",
        json=repository_config,
    )
    responses.add(
        responses.POST,
        f"{self.base_url}/2.0/repositories/{self.repo.name}/hooks",
        json={"uuid": "99"},
    )