Instead my.github.all should be used (still backward compatible) The reasons are a) I don't feel that grouping (i.e. my.coding.*) makes much sense b) using .all pattern (same way as twitter) allows for more composable and cleaner separation of GDPR and API data
16 lines
294 B
Python
16 lines
294 B
Python
#!/usr/bin/env python3
|
|
from more_itertools import ilen
|
|
|
|
from my.coding.github import get_events
|
|
|
|
|
|
def test_gdpr():
|
|
import my.github.gdpr as gdpr
|
|
assert ilen(gdpr.events()) > 100
|
|
|
|
|
|
def test():
|
|
events = get_events()
|
|
assert ilen(events) > 100
|
|
for e in events:
|
|
print(e)
|