This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.management import call_command | |
from django.db import connection | |
from tenant_schemas.utils import get_public_schema_name, get_tenant_model | |
import pytest | |
TenantModel = get_tenant_model() | |
def get_or_create_tenant(*, schema_name, migrate=True): | |
try: |