Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)

src/d/j/django-tenant-schemas-HEAD/tenant_schemas/tests/tenants.py   django-tenant-schemas(Download)
        self.public_tenant = Tenant(domain_url=self.public_tenant_domain,
                                    schema_name='public')
        self.public_tenant.save()
 
        connection.set_schema_to_public()
        """
        tenant = Tenant(domain_url='something.test.com', schema_name='test')
        tenant.save()
 
        self.assertTrue(schema_exists(tenant.schema_name))
        """
        tenant = Tenant(domain_url='something.test.com', schema_name='test')
        tenant.save()
 
        # go to tenant's path
        connection.set_schema_to_public()
        tenant.domain_url = 'example.com'
        tenant.save()
 
        connection.set_tenant(tenant)
        tenant1 = Tenant(domain_url='something.test.com',
                         schema_name='tenant1')
        tenant1.save()
 
        connection.set_schema_to_public()

src/d/j/django-tenant-schemas-HEAD/tenant_schemas/tests/routes.py   django-tenant-schemas(Download)
        self.public_tenant = Tenant(domain_url=self.public_tenant_domain,
                                    schema_name='public')
        self.public_tenant.save()
 
        # add a test tenant
        self.tenant_domain = 'tenant.test.com'
        self.tenant = Tenant(domain_url=self.tenant_domain, schema_name='test')
        self.tenant.save()

src/d/j/django-tenant-schemas-1.4.6-1-ga6e682d/tenant_schemas/tests/tenants.py   django-tenant-schemas(Download)
        self.public_tenant = Tenant(domain_url=self.public_tenant_domain,
                                    schema_name='public')
        self.public_tenant.save()
 
        connection.set_schema_to_public()
        """
        tenant = Tenant(domain_url='something.test.com', schema_name='test')
        tenant.save()
 
        self.assertTrue(schema_exists(tenant.schema_name))
        """
        tenant = Tenant(domain_url='something.test.com', schema_name='test')
        tenant.save()
 
        # go to tenant's path
        connection.set_schema_to_public()
        tenant.domain_url = 'example.com'
        tenant.save()
 
        connection.set_tenant(tenant)
        tenant1 = Tenant(domain_url='something.test.com',
                         schema_name='tenant1')
        tenant1.save()
 
        connection.set_schema_to_public()

src/d/j/django-tenant-schemas-1.4.6-1-ga6e682d/tenant_schemas/tests/routes.py   django-tenant-schemas(Download)
        self.public_tenant = Tenant(domain_url=self.public_tenant_domain,
                                    schema_name='public')
        self.public_tenant.save()
 
        # add a test tenant
        self.tenant_domain = 'tenant.test.com'
        self.tenant = Tenant(domain_url=self.tenant_domain, schema_name='test')
        self.tenant.save()