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

@@ -18,7 +18,7 @@ async def test_create_external_channel_with_targets(usecases: usecase.Usecase, m
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -72,7 +72,7 @@ async def test_get_external_channels_for_target(usecases: usecase.Usecase, mock_
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -106,7 +106,7 @@ async def test_delete_external_channel(usecases: usecase.Usecase, mock_database:
title='Target Channel',
username='targetchannel',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target_channel)
@@ -139,14 +139,14 @@ async def test_update_external_channel_links(usecases: usecase.Usecase, mock_dat
title='Target 1',
username='target1',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
target2 = domain.TargetChannel(
telegram_id=-1001234567891,
title='Target 2',
username='target2',
user_id=user.id,
is_active=True,
status=domain.TargetChannelStatus.ACTIVE,
)
await mock_database.upsert_target_channel(target1)
await mock_database.upsert_target_channel(target2)