Replace channel name spaces to hyphens
This commit is contained in:
parent
a30ed6c85c
commit
4133bca460
4 changed files with 15 additions and 1 deletions
BIN
tests/data/subscriptions.csv
(Stored with Git LFS)
Normal file
BIN
tests/data/subscriptions.csv
(Stored with Git LFS)
Normal file
Binary file not shown.
|
10
tests/test_youtube_subscription.py
Normal file
10
tests/test_youtube_subscription.py
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue