Add default billing entity from origin

ref #198
This commit is contained in:
Tobias Kunze 2025-10-07 15:04:12 +02:00
parent 819e13481e
commit 6443582c0e
5 changed files with 87 additions and 12 deletions

View file

@ -3,6 +3,7 @@ import base64
import pytest
from servala.core.models import (
BillingEntity,
Organization,
OrganizationMembership,
OrganizationOrigin,
@ -21,6 +22,11 @@ def origin():
return OrganizationOrigin.objects.create(name="TESTORIGIN")
@pytest.fixture
def billing_entity():
return BillingEntity.objects.create(name="Test Entity")
@pytest.fixture
def organization(origin):
return Organization.objects.create(name="Test Org", origin=origin)