def METHOD_NAME(self):
    ecr_client = mock.MagicMock
    ecr_client.registries = {}
    ecr_client.registries[AWS_REGION] = Registry(
        id=AWS_ACCOUNT_NUMBER,
        region=AWS_REGION,
        scan_type="BASIC",
        repositories=[],
        rules=[],
    )
    with mock.patch(
        "prowler.providers.aws.services.ecr.ecr_service.ECR",
        ecr_client,
    ):
        from prowler.providers.aws.services.ecr.ecr_repositories_scan_images_on_push_enabled.ecr_repositories_scan_images_on_push_enabled import (
            ecr_repositories_scan_images_on_push_enabled,
        )
        check = ecr_repositories_scan_images_on_push_enabled()
        result = check.execute()
        assert len(result) == 0