MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / chargebee_subscription

Function chargebee_subscription

api/tests/conftest.py:358–367  ·  view source on GitHub ↗
(organisation: Organisation)

Source from the content-addressed store, hash-verified

356@pytest.mark.saas_mode
357@pytest.fixture()
358def chargebee_subscription(organisation: Organisation) -> Subscription:
359 subscription = Subscription.objects.get(organisation=organisation)
360 subscription.payment_method = CHARGEBEE
361 subscription.subscription_id = "subscription-id"
362 subscription.plan = "scale-up-v2"
363 subscription.save()
364
365 # refresh organisation to load subscription
366 organisation.refresh_from_db()
367 return subscription # type: ignore[no-any-return]
368
369
370@pytest.fixture()

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…