port tests for takeout from kython
This commit is contained in:
parent
04605d9c09
commit
cd3f2996a3
3 changed files with 32 additions and 10 deletions
|
@ -3,9 +3,18 @@
|
|||
# these tests would only make sense with some existing data? although some of them would work for everyone..
|
||||
# not sure what's a good way of handling this..
|
||||
|
||||
from my.media.youtube import get_watched
|
||||
from my.media.youtube import get_watched, Watched
|
||||
|
||||
|
||||
def test():
|
||||
watched = get_watched()
|
||||
assert len(watched) > 1000
|
||||
|
||||
from datetime import datetime
|
||||
import pytz
|
||||
w = Watched(
|
||||
url='https://www.youtube.com/watch?v=hTGJfRPLe08',
|
||||
title='Jamie xx - Gosh',
|
||||
when=datetime(year=2018, month=6, day=21, hour=5, minute=48, second=34, tzinfo=pytz.utc),
|
||||
)
|
||||
assert w in watched
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue