## Is your feature request related to a problem?

we currently run e2e tests with postgres backend, potentially causing us to miss bugs as we are deprecating Postgres (#6662)

## Describe the solution you'd like

Run e2e tests with clickhouse

## Describe alternatives you've considered



## Additional context

I'll pick this up tomorrow

#### *Thank you* for your feature request – we love each and every one!

posthog/tasks/test/test_calculate_event_property_usage.py
import random
from typing import Callable
from freezegun import freeze_time
from posthog.demo import create_demo_team
from posthog.models import Event, Insight, Organization, Team
from posthog.models.event_definition import EventDefinition
from posthog.models.property_definition import PropertyDefinition
from posthog.tasks.calculate_event_property_usage import calculate_event_property_usage_for_team
from posthog.test.base import BaseTest
def calculate_event_property_usage_test_factory(create_event: Callable) -> Callable:
    class Test(BaseTest):
        def test_updating_team_events_or_related_updates_event_definitions(self) -> None:
            random.seed(900)  
            org = Organization.objects.create(name="Demo Org")
            team = create_demo_team(org, None, None)
            expected_events = [
                "watched_movie",
                "installed_app",
                "rated_app",
                "purchase",
                "entered_free_trial",
                "$pageview",
            ]
            self.assertEqual(EventDefinition.objects.filter(team=team).count(), len(expected_events))
            for obj in EventDefinition.objects.filter(team=team):
                self.assertIn(obj.name, expected_events)
                self.assertEqual(obj.volume_30_day, None)
                self.assertEqual(obj.query_usage_30_day, None)