Пример #1
0
    def setUpClass(cls):
        super(TenantTests, cls).setUpClass()

        cls.user_obj.tenant.name = "User Tenant"
        cls.user_obj.tenant.save()
        ExternalAppLinkFactory.create(tenant_id=cls.user_obj.tenant_id)

        cls.other_tenant_user_obj.tenant.name = "Other Tenant User Tenant"
        cls.other_tenant_user_obj.tenant.save()
        ExternalAppLinkFactory.create(tenant_id=cls.other_tenant_user_obj.tenant_id)
Пример #2
0
    def setUpTestData(cls):
        super(TenantTests, cls).setUpTestData()

        cls.user_obj.tenant.name = "User Tenant"
        cls.user_obj.tenant.save()
        ExternalAppLinkFactory.create(tenant_id=cls.user_obj.tenant_id)

        cls.other_tenant_user_obj.tenant.name = "Other Tenant User Tenant"
        cls.other_tenant_user_obj.tenant.save()
        ExternalAppLinkFactory.create(
            tenant_id=cls.other_tenant_user_obj.tenant_id)