def test__attach_objects_post_save_hook_without_icon_and_logo(
        self, account, request, platform_account_fixture, configure_settings
    ):
        """Ensure _attach_objects_post_save_hook() on Account model works as expected."""
        account_json, account_instance = request.getfixturevalue(account)

        assert account_instance.branding_icon is None
        assert account_instance.branding_logo is None

        with patch("djstripe.models.core.File") as mock_file:
            with patch.object(mock_file.return_value, "api_retrieve") as mock_retrieve:
                # Invoke _attach_objects_post_save_hook()
                account_instance._attach_objects_post_save_hook(
                    cls=Account, data=account_json, api_key=settings.STRIPE_SECRET_KEY
                )

        mock_retrieve.assert_not_called()
Ensure _attach_objects_post_save_hook() on Account model works as expected.
tests/test_account.py