github: start moving to a proper artbitrated module
This commit is contained in:
parent
67cf4d0c04
commit
d7aff1be3f
5 changed files with 27 additions and 13 deletions
|
@ -1,5 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
from my.coding.github import get_events
|
||||
from more_itertools import ilen
|
||||
|
||||
from my.coding.github import get_events, iter_gdpr_events
|
||||
|
||||
|
||||
def test_gdpr():
|
||||
assert ilen(iter_gdpr_events()) > 100
|
||||
|
||||
|
||||
def test():
|
||||
events = get_events()
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# TODO move elsewhere?
|
||||
|
||||
# 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..
|
||||
|
||||
|
@ -7,7 +6,7 @@ from my.media.youtube import get_watched, Watched
|
|||
|
||||
|
||||
def test():
|
||||
watched = get_watched()
|
||||
watched = list(get_watched())
|
||||
assert len(watched) > 1000
|
||||
|
||||
from datetime import datetime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue