def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.form = FormFactory.create()
    cls.url = reverse("forms:form-detail", kwargs={"slug": cls.form.slug})
    # load some default cookie groups and cookies
    call_command("loaddata", "cookie_consent", stdout=StringIO())
    config = AnalyticsToolsConfiguration.get_solo()
    # configure analytics so that the JS snippets are not empty
    config.gtm_code = "GTM-XXXX"
    config.ga_code = "UA-XXXXX-Y"
    config.matomo_url = "https://example.com"
    config.matomo_site_id = "1234"
    config.piwik_url = "https://example.com"
    config.piwik_site_id = "1234"
    config.siteimprove_id = "1234"
    config.analytics_cookie_consent_group = CookieGroup.objects.get(
        varname="analytical"
    )
    config.save()
    # workaround for https://github.com/bmihelac/django-cookie-consent/issues/41
    # the cache instance is resolved at import time rather than at runtime.
    delete_cache()