github: DEPRECATE my.coding.github
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
This commit is contained in:
parent
d7aff1be3f
commit
ca39187c63
7 changed files with 286 additions and 244 deletions
|
@ -1,15 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
from more_itertools import ilen
|
||||
|
||||
from my.coding.github import get_events, iter_gdpr_events
|
||||
from my.coding.github import get_events
|
||||
|
||||
|
||||
def test_gdpr():
|
||||
assert ilen(iter_gdpr_events()) > 100
|
||||
import my.github.gdpr as gdpr
|
||||
assert ilen(gdpr.events()) > 100
|
||||
|
||||
|
||||
def test():
|
||||
events = get_events()
|
||||
assert len(events) > 100
|
||||
assert ilen(events) > 100
|
||||
for e in events:
|
||||
print(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue