Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

374 B
Raw Blame
import pytest

from fastapi.testclient import TestClient
from stripe_mock.data.store import store
from stripe_mock.main import app


@pytest.fixture(autouse=True)
def load_basic_scenario():
    store.load_scenario("basic")
    import stripe_mock.routes.webhook_endpoints as we

    we._webhooks.clear()
    yield


@pytest.fixture()
def client():
    return TestClient(app)