feat: миграция с булевых переменных на status для target_channel

This commit is contained in:
Artem Tsyrulnikov
2025-12-01 13:34:26 +03:00
parent f7754b707d
commit d117776e65
16 changed files with 56 additions and 67 deletions

View File

@@ -19,7 +19,7 @@ async def test_handle_subscription_success(usecases: usecase.Usecase, mock_datab
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -93,7 +93,7 @@ async def test_handle_subscription_duplicate_ignored(usecases: usecase.Usecase,
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -193,7 +193,7 @@ async def test_multiple_users_subscription_same_placement(
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -267,7 +267,7 @@ async def test_subscription_tracking_across_different_placements(
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)