Skip to content

Commit

Permalink
feat: update tenant user status in periodic task
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Nov 28, 2024
1 parent f9f77a5 commit 7917deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bk-user/tests/apps/tenant/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def not_expired_tenant_user(bare_local_data_source, random_tenant):
return TenantUser.objects.create(
id=generate_random_string(),
tenant=random_tenant,
data_source=data_source_user.data_source,
data_source=bare_local_data_source,
data_source_user=data_source_user,
status=TenantUserStatus.ENABLED,
account_expired_at=timezone.now() + timedelta(days=1),
Expand All @@ -53,7 +53,7 @@ def expired_tenant_user(bare_local_data_source, random_tenant):
return TenantUser.objects.create(
id=generate_random_string(),
tenant=random_tenant,
data_source=data_source_user.data_source,
data_source=bare_local_data_source,
data_source_user=data_source_user,
status=TenantUserStatus.ENABLED,
account_expired_at=get_midnight() - timedelta(days=1),
Expand Down

0 comments on commit 7917deb

Please sign in to comment.