Skip to content

Commit

Permalink
Merge pull request #1325 from longguikeji/feature-402
Browse files Browse the repository at this point in the history
feat: 🎸 更新init
  • Loading branch information
hanbinloop authored Oct 8, 2022
2 parents 1e7f466 + 5e41f44 commit e8fc2e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ def setUp(self):
# 飞书可能会没有
self.feishu = TenantExtensionConfig.valid_objects.filter(extension__package='com.longgui.external.idp.feishu', tenant=self.tenant).first()
# 新租户
self.create_tenant = Tenant.objects.create(name='testttt', slug='testttt', icon='')
# only_name = uuid.uuid4().hex
# self.create_tenant = Tenant.objects.create(name=only_name, slug=only_name, icon='')
self.create_tenant = Tenant.valid_objects.exclude(slug='').order_by('-created').first()
if self.create_tenant is None:
self.create_tenant = self.tenant
# 第三方认证
config = TenantExtensionConfig()
config.tenant = self.tenant
Expand Down

0 comments on commit e8fc2e3

Please sign in to comment.