Replace channel name spaces to hyphens

This commit is contained in:
BreadTube 2026-05-25 00:26:25 +09:00
commit 4133bca460
4 changed files with 15 additions and 1 deletions

BIN
tests/data/subscriptions.csv (Stored with Git LFS) Normal file

Binary file not shown.
1 version https://git-lfs.github.com/spec/v1
2 oid sha256:43048fa740f1583dcd33c27ffa38b15a03aa53177aa6c1ce23b2adebb04546af
3 size 91

View file

@ -0,0 +1,10 @@
import logging
from pathlib import Path
from breadtube_bot.youtube_subscription import SubscriptionHelper
def test_helper():
subscriptions = SubscriptionHelper.read_text(Path('tests/data/subscriptions.csv').read_bytes())
assert subscriptions['UUlDye0T4xTEq46sA5evq9fA'].name == 'a-gauche'
assert subscriptions['UUFrDDP81MX_QfOHrRZOgD4g'].name == 'l214'