def METHOD_NAME(self):
    codeartifact_client = mock.MagicMock
    codeartifact_client.repositories = {
        "test-repository": Repository(
            name="test-repository",
            arn="",
            domain_name="",
            domain_owner="",
            region=AWS_REGION,
            packages=[],
        )
    }
    with mock.patch(
        "prowler.providers.aws.services.codeartifact.codeartifact_service.CodeArtifact",
        new=codeartifact_client,
    ):
        # Test Check
        from prowler.providers.aws.services.codeartifact.codeartifact_packages_external_public_publishing_disabled.codeartifact_packages_external_public_publishing_disabled import (
            codeartifact_packages_external_public_publishing_disabled,
        )
        check = codeartifact_packages_external_public_publishing_disabled()
        result = check.execute()
        assert len(result) == 0