9 lines
353 B
Python
9 lines
353 B
Python
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'
|