def test_tenant_apps_and_shared_apps_can_have_the_same_apps(self):
        tenant = get_tenant_model()(schema_name='test')
        tenant.save()

        domain = get_tenant_domain_model()(tenant=tenant, domain='arbitrary.test.com')
        domain.save()

        shared_tables = self.get_tables_list_in_schema(get_public_schema_name())
        tenant_tables = self.get_tables_list_in_schema(tenant.schema_name)
        self.assertEqual(2+6+1+1+self.MIGRATION_TABLE_SIZE, len(shared_tables))
        self.assertIn('django_session', shared_tables)
        self.assertEqual(1+self.MIGRATION_TABLE_SIZE, len(tenant_tables))
        self.assertIn('django_session', tenant_tables)
Tests that both SHARED_APPS and TENANT_APPS can have apps in common.
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/tests/test_tenants.py/TestSyncTenantsWithAuth.test_tenant_apps_and_shared_apps_can_have_the_same_apps