def METHOD_NAME(self):
    self.init_github()
    responses.add(
        method=responses.GET,
        url=self.repo_api_url,
        json=self._get_expected_repo("TestOwner", "TestRepo"),
    )
    responses.add(
        method=responses.GET, url=f"{self.repo_api_url}/commits/abcdef", status=422
    )
    project_config = create_project_config(repo_commit="abcdef")
    project_config.keychain.set_service(
        "github",
        "test_alias",
        ServiceConfig(
            {
                "username": "TestUser",
                "token": "TestPass",
                "email": "testuser@testdomain.com",
            }
        ),
    )
    task_config = TaskConfig({"options": {"context": "2gp"}})
    org_config = OrgConfig(
        {"instance_url": "https://salesforce", "access_token": "TOKEN"}, "test"
    )
    task = GetPackageDataFromCommitStatus(project_config, task_config, org_config)
    task._init_task()
    with pytest.raises(
        DependencyLookupError,
        match="Could not find package version id in '2gp' commit status for commit abcdef.",
    ):
        task._run_task()